Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

Commit 5abb66e

Browse files
zcbenznitsakh
authored andcommitted
fix: make it possible to change noBrowserGlobals at runtime
This is a temporary hack in responding to Node's change: nodejs/node#26228 We need to figure out a better solution.
1 parent d8b51b8 commit 5abb66e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/bootstrap/node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ const {
173173
queueMicrotask
174174
} = require('internal/process/task_queues');
175175

176-
if (!config.noBrowserGlobals) {
176+
if (!process._noBrowserGlobals) {
177177
// Override global console from the one provided by the VM
178178
// to the one implemented by Node.js
179179
// https://console.spec.whatwg.org/#console-namespace

0 commit comments

Comments
 (0)