summaryrefslogtreecommitdiff
path: root/ext/node/01_node.js
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2022-08-26 23:39:05 +0900
committerGitHub <noreply@github.com>2022-08-26 23:39:05 +0900
commit9b324b1cf4a8ee4159abb041e72a8885a28e92a3 (patch)
tree37cd36144b77915b17975719fdaa1862ff8e0bcb /ext/node/01_node.js
parentf583a7ebf4f7c4ef21061fba802f80fd2d5299e7 (diff)
fix(ext/node): fix global in node env (#15622)
Diffstat (limited to 'ext/node/01_node.js')
-rw-r--r--ext/node/01_node.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/node/01_node.js b/ext/node/01_node.js
index 8425d3101..883932c5d 100644
--- a/ext/node/01_node.js
+++ b/ext/node/01_node.js
@@ -93,7 +93,7 @@
nodeGlobals.clearImmediate = nativeModuleExports["timers"].clearImmediate;
nodeGlobals.clearInterval = nativeModuleExports["timers"].clearInterval;
nodeGlobals.clearTimeout = nativeModuleExports["timers"].clearTimeout;
- nodeGlobals.global = nodeGlobals;
+ nodeGlobals.global = nodeGlobalThis;
nodeGlobals.process = nativeModuleExports["process"];
nodeGlobals.setImmediate = nativeModuleExports["timers"].setImmediate;
nodeGlobals.setInterval = nativeModuleExports["timers"].setInterval;