mirror of
https://github.com/denoland/deno.git
synced 2024-11-27 16:10:57 -05:00
25 lines
625 B
JavaScript
25 lines
625 B
JavaScript
exports.globalThis = globalThis;
|
|
exports.global = global;
|
|
exports.process = process;
|
|
|
|
exports.deleteSetTimeout = function () {
|
|
delete globalThis.setTimeout;
|
|
};
|
|
|
|
exports.getSetTimeout = function () {
|
|
return globalThis.setTimeout;
|
|
};
|
|
|
|
exports.checkWindowGlobal = function () {
|
|
console.log("window" in globalThis);
|
|
console.log(Object.getOwnPropertyDescriptor(globalThis, "window") !== undefined);
|
|
}
|
|
|
|
exports.checkSelfGlobal = function () {
|
|
console.log("self" in globalThis);
|
|
console.log(Object.getOwnPropertyDescriptor(globalThis, "self") !== undefined);
|
|
}
|
|
|
|
exports.getFoo = function () {
|
|
return globalThis.foo;
|
|
}
|