File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -111,10 +111,12 @@ NAPI_EXTERN napi_status napi_create_range_error(napi_env env,
111111 napi_value code ,
112112 napi_value msg ,
113113 napi_value * result );
114+ #ifdef NAPI_EXPERIMENTAL
114115NAPI_EXTERN napi_status napi_create_syntax_error (napi_env env ,
115116 napi_value code ,
116117 napi_value msg ,
117118 napi_value * result );
119+ #endif // NAPI_EXPERIMENTAL
118120
119121// Methods to get the native napi_value from Primitive type
120122NAPI_EXTERN napi_status napi_typeof (napi_env env ,
@@ -374,9 +376,11 @@ NAPI_EXTERN napi_status napi_throw_type_error(napi_env env,
374376NAPI_EXTERN napi_status napi_throw_range_error (napi_env env ,
375377 const char * code ,
376378 const char * msg );
379+ #ifdef NAPI_EXPERIMENTAL
377380NAPI_EXTERN napi_status napi_throw_syntax_error (napi_env env ,
378381 const char * code ,
379382 const char * msg );
383+ #endif // NAPI_EXPERIMENTAL
380384NAPI_EXTERN napi_status napi_is_error (napi_env env ,
381385 napi_value value ,
382386 bool * result );
You can’t perform that action at this time.
0 commit comments