Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCheng Zhao <zcbenz@gmail.com>2022-01-05 14:01:49 +0300
committerGitHub <noreply@github.com>2022-01-05 14:01:49 +0300
commita706342368ff7c05fc2ae6b55e9eaa47815785dd (patch)
tree15cddaa27f61e0ca4f9772038fd5447d64f9ebe4 /src/node_worker.cc
parentf34c0e0bc00bac9d1f4e375b81b8669ff0b3ce6e (diff)
src: add kNoBrowserGlobals flag for Environment
PR-URL: https://github.com/nodejs/node/pull/40532 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Minwoo Jung <nodecorelab@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Diffstat (limited to 'src/node_worker.cc')
-rw-r--r--src/node_worker.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/node_worker.cc b/src/node_worker.cc
index a734d65965a..6e0475511d5 100644
--- a/src/node_worker.cc
+++ b/src/node_worker.cc
@@ -574,6 +574,8 @@ void Worker::New(const FunctionCallbackInfo<Value>& args) {
worker->environment_flags_ |= EnvironmentFlags::kNoNativeAddons;
if (env->no_global_search_paths())
worker->environment_flags_ |= EnvironmentFlags::kNoGlobalSearchPaths;
+ if (env->no_browser_globals())
+ worker->environment_flags_ |= EnvironmentFlags::kNoBrowserGlobals;
}
void Worker::StartThread(const FunctionCallbackInfo<Value>& args) {