diff --git a/doc/api/cli.md b/doc/api/cli.md index c38d227d8d6aff..b29072164f9071 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -439,6 +439,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`