File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -1748,7 +1748,7 @@ will not be freed. This can be avoided by calling
1748
1748
1749
1749
**Change History:**
1750
1750
1751
- * Experimental (`NAPI_EXPERIMENTAL ` is defined):
1751
+ * Version 10 (`NAPI_VERSION ` is defined as `10` or higher ):
1752
1752
1753
1753
References can be created for all value types. The new supported value
1754
1754
types do not support weak reference semantic and the values of these types
@@ -6527,7 +6527,7 @@ napi_create_threadsafe_function(napi_env env,
6527
6527
6528
6528
**Change History:**
6529
6529
6530
- * Experimental (`NAPI_EXPERIMENTAL ` is defined):
6530
+ * Version 10 (`NAPI_VERSION ` is defined as `10` or higher ):
6531
6531
6532
6532
Uncaught exceptions thrown in `call_js_cb` are handled with the
6533
6533
[`'uncaughtException'`][] event, instead of being ignored.
Original file line number Diff line number Diff line change @@ -93,11 +93,11 @@ void node_napi_env__::CallbackIntoModule(T&& call) {
93
93
return ;
94
94
}
95
95
node::Environment* node_env = env->node_env ();
96
- // If the module api version is less than NAPI_VERSION_EXPERIMENTAL,
97
- // and the option --force-node-api-uncaught-exceptions-policy is not
98
- // specified, emit a warning about the uncaught exception instead of
99
- // triggering uncaught exception event.
100
- if (env->module_api_version < NAPI_VERSION_EXPERIMENTAL &&
96
+ // If the module api version is less than 10, and the option
97
+ // --force-node-api-uncaught-exceptions-policy is not specified, emit a
98
+ // warning about the uncaught exception instead of triggering the uncaught
99
+ // exception event.
100
+ if (env->module_api_version < 10 &&
101
101
!node_env->options ()->force_node_api_uncaught_exceptions_policy &&
102
102
!enforceUncaughtExceptionPolicy) {
103
103
ProcessEmitDeprecationWarning (
You can’t perform that action at this time.
0 commit comments