diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-11-02 19:08:09 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-02 19:08:09 -0400 |
commit | 77fb26e143d635f713a1ded93100210878c61f19 (patch) | |
tree | 3753ae34c4ccc19c231632d28218d8066ab4ea60 /ext/node/01_node.js | |
parent | 5140795662a9d5eb13031912fa193b7305779c1f (diff) |
fix(npm): add `console` global for node environment (#16519)
This global is already isolated to node during type checking.
Closes #16518
Diffstat (limited to 'ext/node/01_node.js')
-rw-r--r-- | ext/node/01_node.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/node/01_node.js b/ext/node/01_node.js index 79d3503ca..8fe815f01 100644 --- a/ext/node/01_node.js +++ b/ext/node/01_node.js @@ -100,6 +100,7 @@ nodeGlobals.clearImmediate = nativeModuleExports["timers"].clearImmediate; nodeGlobals.clearInterval = nativeModuleExports["timers"].clearInterval; nodeGlobals.clearTimeout = nativeModuleExports["timers"].clearTimeout; + nodeGlobals.console = nativeModuleExports["console"]; nodeGlobals.global = nodeGlobalThis; nodeGlobals.process = nativeModuleExports["process"]; nodeGlobals.setImmediate = nativeModuleExports["timers"].setImmediate; |