mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
src: conditionally disable source phase imports by default
PR-URL: https://github.com/nodejs/node/pull/60364 Refs: https://chromium-review.googlesource.com/c/v8/v8/+/7003082 Reviewed-By: Guy Bedford <guybedford@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
This commit is contained in:
1 parent
ba7cdf4a92
commit
9bfff20df4
1 file changed
+4
-1
+4
-1
@@ -780,7 +780,10 @@ static ExitCode ProcessGlobalArgsInternal(std::vector<std::string>* args,
|
||||
env_opts->abort_on_uncaught_exception = true;
|
||||
}
|
||||
|
||||
v8_args.emplace_back("--js-source-phase-imports");
|
||||
if (std::ranges::find(v8_args, "--no-js-source-phase-imports") ==
|
||||
v8_args.end()) {
|
||||
v8_args.emplace_back("--js-source-phase-imports");
|
||||
}
|
||||
|
||||
#ifdef __POSIX__
|
||||
// Block SIGPROF signals when sleeping in epoll_wait/kevent/etc. Avoids the
|
||||
|
||||
Reference in new issue
Block a user