From edc6a7af421defe9bb43e9a892d23e09987d7f9f Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Sun, 9 Jan 2022 12:42:38 +0100 Subject: [PATCH] doc: clarify `uncaughtException` `origin` for ESM Fixes: https://github.com/nodejs/node/issues/41328 PR-URL: https://github.com/nodejs/node/pull/41339 Reviewed-By: Geoffrey Booth Reviewed-By: Bradley Farias --- doc/api/cli.md | 3 +++ doc/api/process.md | 16 ++++++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/doc/api/cli.md b/doc/api/cli.md index 1c04da298b3760..63bd7aaa702609 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -1261,6 +1261,9 @@ occurs. One of the following modes can be chosen: set, trigger a warning, and set the process exit code to 1. * `none`: Silence all warnings. +If a rejection happens during the command line entry point's ES module static +loading phase, it will always raise it as an uncaught exception. + ### `--use-bundled-ca`, `--use-openssl-ca`