summaryrefslogtreecommitdiff
path: root/std/node/global.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/node/global.ts')
-rw-r--r--std/node/global.ts15
1 files changed, 15 insertions, 0 deletions
diff --git a/std/node/global.ts b/std/node/global.ts
index d72760089..585ba1490 100644
--- a/std/node/global.ts
+++ b/std/node/global.ts
@@ -2,6 +2,7 @@
/// <reference path="./global.d.ts" />
import { process as processModule } from "./process.ts";
import { Buffer as bufferModule } from "./buffer.ts";
+import timers from "./timers.ts";
Object.defineProperty(globalThis, "global", {
value: globalThis,
@@ -24,4 +25,18 @@ Object.defineProperty(globalThis, "Buffer", {
configurable: true,
});
+Object.defineProperty(globalThis, "setImmediate", {
+ value: timers.setImmediate,
+ enumerable: true,
+ writable: true,
+ configurable: true,
+});
+
+Object.defineProperty(globalThis, "clearImmediate", {
+ value: timers.clearImmediate,
+ enumerable: true,
+ writable: true,
+ configurable: true,
+});
+
export {};