Skip to content

Commit

Permalink
chore: remove timer globals
Browse files Browse the repository at this point in the history
  • Loading branch information
kt3k committed Dec 22, 2021
1 parent acd2b69 commit ea2a01e
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions node/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ import timers from "./timers.ts";
type GlobalType = {
process: typeof processModule;
Buffer: typeof bufferModule;
setTimeout: typeof timers.setTimeout;
clearTimeout: typeof timers.clearTimeout;
setInterval: typeof timers.setInterval;
clearInterval: typeof timers.clearInterval;
setImmediate: typeof timers.setImmediate;
clearImmediate: typeof timers.clearImmediate;
};
Expand Down Expand Up @@ -53,34 +49,6 @@ Object.defineProperty(globalThis, "Buffer", {
configurable: true,
});

Object.defineProperty(globalThis, "setTimeout", {
value: timers.setTimeout,
enumerable: true,
writable: true,
configurable: true,
});

Object.defineProperty(globalThis, "clearTimeout", {
value: timers.clearTimeout,
enumerable: true,
writable: true,
configurable: true,
});

Object.defineProperty(globalThis, "setInterval", {
value: timers.setInterval,
enumerable: true,
writable: true,
configurable: true,
});

Object.defineProperty(globalThis, "clearInterval", {
value: timers.clearInterval,
enumerable: true,
writable: true,
configurable: true,
});

Object.defineProperty(globalThis, "setImmediate", {
value: timers.setImmediate,
enumerable: true,
Expand Down

0 comments on commit ea2a01e

Please sign in to comment.