Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlegendecas <legendecas@gmail.com>2020-12-14 14:10:51 +0300
committerMichael Dawson <mdawson@devrus.com>2022-05-27 20:32:08 +0300
commit681fb3a200cc6ea0320b7c4661e91de051252899 (patch)
treebb0f8f3db6875927673f6b07113174c94f0ccf1b /doc/api/cli.md
parent6375b13de86d0e993e0e2798ce77c5812598b953 (diff)
node-api: emit uncaught-exception on unhandled tsfn callbacks
PR-URL: https://github.com/nodejs/node/pull/36510 Fixes: https://github.com/nodejs/node/issues/36402 Reviewed-By: Michael Dawson <midawson@redhat.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc/api/cli.md')
-rw-r--r--doc/api/cli.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/api/cli.md b/doc/api/cli.md
index c38d227d8d6..b29072164f9 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`
+
+<!-- YAML
+added: REPLACEME
+-->
+
+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`
<!-- YAML
@@ -1638,6 +1650,7 @@ Node.js options that are allowed are:
* `--experimental-wasm-modules`
* `--force-context-aware`
* `--force-fips`
+* `--force-node-api-uncaught-exceptions-policy`
* `--frozen-intrinsics`
* `--heapsnapshot-near-heap-limit`
* `--heapsnapshot-signal`