Skip to content

Commit 0b16434

Browse files
committed
fixup! src: fix external module env and kDisableNodeOptionsEnv
1 parent d3081b9 commit 0b16434

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/node.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,7 @@ static ExitCode InitializeNodeWithArgsInternal(
879879
!node_repl_external_env.empty()) {
880880
errors->emplace_back("NODE_REPL_EXTERNAL_MODULE can't be used with "
881881
"kDisableNodeOptionsEnv");
882-
return ExitCode::kBootstrapFailure;
882+
return ExitCode::kInvalidCommandLineArgument;
883883
}
884884
}
885885
#endif

test/embedding/test-embedding.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ for (const extraSnapshotArgs of [
163163
},
164164
},
165165
{
166-
status: 10,
166+
status: 9,
167167
signal: null,
168168
stderr: `${binary}: NODE_REPL_EXTERNAL_MODULE can't be used with kDisableNodeOptionsEnv\n`,
169169
});

0 commit comments

Comments
 (0)