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 Apr 16, 2019
1 parent 7fb0b34 commit dc8cf8e
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 @@ -162,7 +162,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 dc8cf8e

Please sign in to comment.