Skip to content

Commit

Permalink
fixup! src: fix external module env and kDisableNodeOptionsEnv
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelGSS committed May 17, 2024
1 parent d3081b9 commit 0b16434
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/embedding/test-embedding.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
});
Expand Down

0 comments on commit 0b16434

Please sign in to comment.