2020-09-21 21:26:41 +09: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 10:40:11 -08:00
|
|
|
import { Buffer as bufferModule } from "./buffer.ts";
|
2020-12-06 02:16:07 +11:00
|
|
|
import timers from "./timers.ts";
|
2020-09-21 21:26:41 +09:00
|
|
|
|
2020-11-19 07:23:42 -05:00
|
|
|
Object.defineProperty(globalThis, "global", {
|
|
|
|
value: globalThis,
|
2020-04-30 20:58:40 +03:00
|
|
|
writable: false,
|
|
|
|
enumerable: false,
|
|
|
|
configurable: true,
|
|
|
|
});
|
|
|
|
|
2020-11-07 11:27:07 -08:00
|
|
|
Object.defineProperty(globalThis, "process", {
|
2020-11-19 07:23:42 -05:00
|
|
|
value: processModule,
|
2020-11-07 11:27:07 -08:00
|
|
|
enumerable: false,
|
|
|
|
writable: true,
|
|
|
|
configurable: true,
|
|
|
|
});
|
|
|
|
|
|
|
|
Object.defineProperty(globalThis, "Buffer", {
|
2020-11-19 07:23:42 -05:00
|
|
|
value: bufferModule,
|
2020-11-07 11:27:07 -08:00
|
|
|
enumerable: false,
|
|
|
|
writable: true,
|
|
|
|
configurable: true,
|
|
|
|
});
|
|
|
|
|
2020-12-06 02:16:07 +11: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 11:01:36 +01:00
|
|
|
export {};
|