DEP0168: Unhandled exception in Node-API callbacks
类型: 运行时
现在不推荐在 Node-API 回调中隐式抑制未捕获的异常。
如果异常未在 Node-API 回调中处理,则设置标志 --force-node-api-uncaught-exceptions-policy 以强制 Node.js 发出 'uncaughtException' 事件。
Type: Runtime
The implicit suppression of uncaught exceptions in Node-API callbacks is now deprecated.
Set the flag --force-node-api-uncaught-exceptions-policy to force Node.js
to emit an 'uncaughtException' event if the exception is not handled in
Node-API callbacks.