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

Commit ebb8800

Browse files
zcbenzcodebytere
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 20513ec commit ebb8800

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/internal/bootstrap/node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ const {
164164
queueMicrotask
165165
} = require('internal/process/task_queues');
166166

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

0 commit comments

Comments
 (0)