feat(napi): add experimental flag
This commit is contained in:
parent
49a0139f81
commit
2d5b997b7d
2 changed files with 5 additions and 1 deletions
|
@ -11,9 +11,10 @@ version = "2.0.0-beta.1"
|
|||
|
||||
[features]
|
||||
async = ["tokio_rt"]
|
||||
experimental = ["napi-sys/experimental"]
|
||||
compat-mode = []
|
||||
default = ["napi3", "compat-mode"] # for most Node.js users
|
||||
full = ["latin1", "napi8", "async", "serde-json"]
|
||||
full = ["latin1", "napi8", "async", "serde-json", "experimental"]
|
||||
latin1 = ["encoding_rs"]
|
||||
napi1 = []
|
||||
napi2 = ["napi1"]
|
||||
|
|
|
@ -151,6 +151,9 @@ pub struct JsTypeError(Error);
|
|||
|
||||
pub struct JsRangeError(Error);
|
||||
|
||||
#[cfg(feature = "experimental")]
|
||||
pub struct JsSyntaxError(Error);
|
||||
|
||||
macro_rules! impl_object_methods {
|
||||
($js_value:ident, $kind:expr) => {
|
||||
impl $js_value {
|
||||
|
|
Loading…
Reference in a new issue