diff options
author | Chengzhong Wu <chengzhong.wcz@alibaba-inc.com> | 2022-09-13 11:29:10 +0300 |
---|---|---|
committer | RafaelGSS <rafael.nunu@hotmail.com> | 2022-09-27 01:07:46 +0300 |
commit | 64cb43a2b6370705536a2d530152cf85f00ad923 (patch) | |
tree | 9391850686579ee96fb9121139e94cc01cb092b0 /src | |
parent | 9b3b7d6978bbda570b85bc6367f27d4fbc9bb664 (diff) |
node-api: add deprecation code of uncaught exception
Deprecation should reference a valid deprecation code.
PR-URL: https://github.com/nodejs/node/pull/44624
Refs: https://github.com/nodejs/node/pull/36510
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Michael Dawson <midawson@redhat.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/node_api.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_api.cc b/src/node_api.cc index 922d6ffac19..48b94a7c128 100644 --- a/src/node_api.cc +++ b/src/node_api.cc @@ -90,7 +90,7 @@ void node_napi_env__::CallbackIntoModule(T&& call) { "Uncaught N-API callback exception detected, please run node " "with option --force-node-api-uncaught-exceptions-policy=true" "to handle those exceptions properly.", - "DEP0XXX"); + "DEP0168"); return; } // If there was an unhandled exception in the complete callback, |