2024-01-01 14:58:21 -05:00
|
|
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
2023-07-19 04:30:04 -04:00
|
|
|
import { Buffer } from "node:buffer";
|
|
|
|
import {
|
|
|
|
clearImmediate,
|
|
|
|
clearInterval,
|
|
|
|
clearTimeout,
|
|
|
|
setImmediate,
|
|
|
|
setInterval,
|
|
|
|
setTimeout,
|
|
|
|
} from "node:timers";
|
|
|
|
import { performance } from "node:perf_hooks";
|
|
|
|
globalThis.Buffer = Buffer;
|
|
|
|
globalThis.clearImmediate = clearImmediate;
|
|
|
|
globalThis.clearInterval = clearInterval;
|
|
|
|
globalThis.clearTimeout = clearTimeout;
|
|
|
|
globalThis.global = globalThis;
|
|
|
|
globalThis.performance = performance;
|
|
|
|
globalThis.setImmediate = setImmediate;
|
|
|
|
globalThis.setInterval = setInterval;
|
|
|
|
globalThis.setTimeout = setTimeout;
|
|
|
|
delete globalThis.window;
|