Skip to content

Commit 4a5d7a4

Browse files
codebytereaduh95
authored andcommitted
src: conditionally disable source phase imports by default
PR-URL: #60364 Refs: https://chromium-review.googlesource.com/c/v8/v8/+/7003082 Reviewed-By: Guy Bedford <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Chengzhong Wu <[email protected]>
1 parent 29a5855 commit 4a5d7a4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/node.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,10 @@ static ExitCode ProcessGlobalArgsInternal(std::vector<std::string>* args,
780780
env_opts->abort_on_uncaught_exception = true;
781781
}
782782

783-
v8_args.emplace_back("--js-source-phase-imports");
783+
if (std::ranges::find(v8_args, "--no-js-source-phase-imports") ==
784+
v8_args.end()) {
785+
v8_args.emplace_back("--js-source-phase-imports");
786+
}
784787

785788
#ifdef __POSIX__
786789
// Block SIGPROF signals when sleeping in epoll_wait/kevent/etc. Avoids the

0 commit comments

Comments
 (0)