From cb9029cc5f79139c73253c6403344331245421b7 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Fri, 29 Mar 2019 16:21:42 +0900 Subject: [PATCH] fix: make it possible to change noBrowserGlobals at runtime This is a temporary hack in responding to Node's change: https://github.com/nodejs/node/pull/26228 We need to figure out a better solution. --- lib/internal/bootstrap/node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/bootstrap/node.js b/lib/internal/bootstrap/node.js index 5cc24980fa..bff7ff9d9f 100644 --- a/lib/internal/bootstrap/node.js +++ b/lib/internal/bootstrap/node.js @@ -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