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:
Shelley Vohr authored and GitHub committed 2025-10-26 07:27:57 +00:00
1 parent ba7cdf4a92
commit 9bfff20df4
1 file changed
+4 -1
+4 -1
View File
@@ -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