diff --git a/doc/api/cli.md b/doc/api/cli.md index 20426eb9b6f069..5b782c3ec15fa7 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -427,6 +427,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`