2020-09-21 08:26:41 -04:00
|
|
|
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
2020-11-19 07:23:42 -05:00
|
|
|
/// <reference path="./global.d.ts" />
|
|
|
|
import { process as processModule } from "./process.ts";
|
2020-11-27 13:40:11 -05:00
|
|
|
import { Buffer as bufferModule } from "./buffer.ts";
|
2020-12-05 10:16:07 -05:00
|
|
|
import timers from "./timers.ts";
|
2020-09-21 08:26:41 -04:00
|
|
|
|
2020-11-19 07:23:42 -05:00
|
|
|
Object.defineProperty(globalThis, "global", {
|
|
|
|
value: globalThis,
|
2020-04-30 13:58:40 -04:00
|
|
|
writable: false,
|
|
|
|
enumerable: false,
|
|
|
|
configurable: true,
|
|
|
|
});
|
|
|
|
|
2020-11-07 14:27:07 -05:00
|
|
|
Object.defineProperty(globalThis, "process", {
|
2020-11-19 07:23:42 -05:00
|
|
|
value: processModule,
|
2020-11-07 14:27:07 -05:00
|
|
|
enumerable: false,
|
|
|
|
writable: true,
|
|
|
|
configurable: true,
|
|
|
|
});
|
|
|
|
|
|
|
|
Object.defineProperty(globalThis, "Buffer", {
|
2020-11-19 07:23:42 -05:00
|
|
|
value: bufferModule,
|
2020-11-07 14:27:07 -05:00
|
|
|
enumerable: false,
|
|
|
|
writable: true,
|
|
|
|
configurable: true,
|
|
|
|
});
|
|
|
|
|
2020-12-05 10:16:07 -05:00
|
|
|
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,
|
|
|
|
});
|
|
|
|
|
2020-08-12 06:01:36 -04:00
|
|
|
export {};
|