Skip to content

Commit ccfa477

Browse files
committed
fixup! src: fix external module env and kDisableNodeOptionsEnv
1 parent c031cfb commit ccfa477

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
@@ -903,7 +903,7 @@ static ExitCode InitializeNodeWithArgsInternal(
903903
!node_repl_external_env.empty()) {
904904
errors->emplace_back("NODE_REPL_EXTERNAL_MODULE can't be used with "
905905
"kDisableNodeOptionsEnv");
906-
return ExitCode::kBootstrapFailure;
906+
return ExitCode::kInvalidCommandLineArgument;
907907
}
908908
}
909909
#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)