diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2019-02-21 06:46:58 +0300 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2019-03-07 02:27:40 +0300 |
commit | 03c71a95e236484fc65a171308dac5a2b55cf618 (patch) | |
tree | 82ff3a625091bf5e27db631b88278af4d14e1ec0 /src/node_process_object.cc | |
parent | 4895927a0a4372e0699f84657e0a299393a3d281 (diff) |
src: use the config binding to carry --no-browser-globals
Instead of setting it in the process object, since this is
a configure-time option. Also added a shim that can be
deprecated and removed some time later.
PR-URL: https://github.com/nodejs/node/pull/26228
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'src/node_process_object.cc')
-rw-r--r-- | src/node_process_object.cc | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/node_process_object.cc b/src/node_process_object.cc index ece0eb76a5a..3e0bac6d239 100644 --- a/src/node_process_object.cc +++ b/src/node_process_object.cc @@ -233,11 +233,6 @@ MaybeLocal<Object> CreateProcessObject( READONLY_PROPERTY(process, "throwDeprecation", True(env->isolate())); } -#ifdef NODE_NO_BROWSER_GLOBALS - // configure --no-browser-globals - READONLY_PROPERTY(process, "_noBrowserGlobals", True(env->isolate())); -#endif // NODE_NO_BROWSER_GLOBALS - // --prof-process // TODO(addaleax): Remove this. if (env->options()->prof_process) { |