DEP0168:Node-API 回调中未处理的异常


¥DEP0168: Unhandled exception in Node-API callbacks

类型:运行时

¥Type: Runtime

Node-API 回调中未捕获异常的隐式抑制现已弃用。

¥The implicit suppression of uncaught exceptions in Node-API callbacks is now deprecated.

如果异常未在 Node-API 回调中处理,则设置标志 --force-node-api-uncaught-exceptions-policy 以强制 Node.js 触发 'uncaughtException' 事件。

¥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.