diff --git a/doc/api/cli.md b/doc/api/cli.md index 69555cf153200b..e844881b1899f9 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -419,6 +419,18 @@ under this flag. To allow polyfills to be added, `--require` runs before freezing intrinsics. +### `--force-node-api-uncaught-exceptions-policy` + + + +Enforces `uncaughtException` event on Node-API asynchronous callbacks. + +To prevent from an existing add-on from crashing the process, this flag is not +enabled by default. In the future, this flag will be enabled by default to +enforce the correct behavior. + ### `--heapsnapshot-near-heap-limit=max_count`