From 52a988bfb8db258c824c336b1b4ceef8dd52a4b3 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 ca4d565cbca72a..c455d29859f68b 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -1232,6 +1232,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`