From 0b16434b124df98a03f63c4e1cfac1a7a5346b2a Mon Sep 17 00:00:00 2001 From: RafaelGSS Date: Fri, 17 May 2024 11:20:09 -0300 Subject: [PATCH] fixup! src: fix external module env and kDisableNodeOptionsEnv --- src/node.cc | 2 +- test/embedding/test-embedding.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/node.cc b/src/node.cc index 555e306ecce799..87488cf0e015fd 100644 --- a/src/node.cc +++ b/src/node.cc @@ -879,7 +879,7 @@ static ExitCode InitializeNodeWithArgsInternal( !node_repl_external_env.empty()) { errors->emplace_back("NODE_REPL_EXTERNAL_MODULE can't be used with " "kDisableNodeOptionsEnv"); - return ExitCode::kBootstrapFailure; + return ExitCode::kInvalidCommandLineArgument; } } #endif diff --git a/test/embedding/test-embedding.js b/test/embedding/test-embedding.js index 97f77f319ec354..29d91bc02e2512 100644 --- a/test/embedding/test-embedding.js +++ b/test/embedding/test-embedding.js @@ -163,7 +163,7 @@ for (const extraSnapshotArgs of [ }, }, { - status: 10, + status: 9, signal: null, stderr: `${binary}: NODE_REPL_EXTERNAL_MODULE can't be used with kDisableNodeOptionsEnv\n`, });