File tree 2 files changed +23
-1
lines changed
2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -3165,12 +3165,34 @@ details.
3165
3165
These groups might be removed in future versions of Node.js. Applications that
3166
3166
rely on these groups should evaluate using stronger MODP groups instead.
3167
3167
3168
+ ### DEP0168: Unhandled exception in Node-API callbacks
3169
+
3170
+ <!-- YAML
3171
+ changes:
3172
+ - version:
3173
+ - v18.3.0
3174
+ - v16.17.0
3175
+ pr-url: https://github.com/nodejs/node/pull/36510
3176
+ description: Runtime deprecation.
3177
+ -->
3178
+
3179
+ Type: Runtime.
3180
+
3181
+ The implicit suppression of uncaught exceptions in Node-API callbacks is now
3182
+ deprecated.
3183
+
3184
+ Set the flag [ ` --force-node-api-uncaught-exceptions-policy ` ] [ ] to force Node.js
3185
+ to emit an [ ` 'uncaughtException' ` ] [ ] event if the exception is not handled in
3186
+ Node-API callbacks.
3187
+
3168
3188
[ Legacy URL API ] : url.md#legacy-url-api
3169
3189
[ NIST SP 800-38D ] : https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf
3170
3190
[ RFC 6066 ] : https://tools.ietf.org/html/rfc6066#section-3
3171
3191
[ RFC 8247 Section 2.4 ] : https://www.rfc-editor.org/rfc/rfc8247#section-2.4
3172
3192
[ WHATWG URL API ] : url.md#the-whatwg-url-api
3173
3193
[ `"exports"` or `"main"` entry ] : packages.md#main-entry-point-export
3194
+ [ `'uncaughtException'` ] : process.md#event-uncaughtexception
3195
+ [ `--force-node-api-uncaught-exceptions-policy` ] : cli.md#--force-node-api-uncaught-exceptions-policy
3174
3196
[ `--pending-deprecation` ] : cli.md#--pending-deprecation
3175
3197
[ `--throw-deprecation` ] : cli.md#--throw-deprecation
3176
3198
[ `--trace-atomics-wait` ] : cli.md#--trace-atomics-wait
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ void node_napi_env__::CallbackIntoModule(T&& call) {
90
90
" Uncaught N-API callback exception detected, please run node "
91
91
" with option --force-node-api-uncaught-exceptions-policy=true"
92
92
" to handle those exceptions properly." ,
93
- " DEP0XXX " );
93
+ " DEP0168 " );
94
94
return ;
95
95
}
96
96
// If there was an unhandled exception in the complete callback,
You can’t perform that action at this time.
0 commit comments