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

Commit

Permalink
fix: make it possible to change noBrowserGlobals at runtime
Browse files Browse the repository at this point in the history
This is a temporary hack in responding to Node's change:
nodejs/node#26228

We need to figure out a better solution.
  • Loading branch information
zcbenz committed Mar 29, 2019
1 parent f1fcd6c commit 21f70b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/bootstrap/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ const {
queueMicrotask
} = require('internal/process/task_queues');

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

0 comments on commit 21f70b0

Please sign in to comment.