mirror of
https://github.com/denoland/deno.git
synced 2024-11-28 16:20:57 -05:00
1587387bcc
1. Moves the npm registries to their own dedicated ports. 2. Moves the data files out of `tests/testdata/npm/registry` to `tests/registry/npm`.
25 lines
No EOL
634 B
JavaScript
25 lines
No EOL
634 B
JavaScript
exports.globalThis = globalThis;
|
|
exports.global = global;
|
|
exports.process = process;
|
|
|
|
exports.deleteSetTimeout = function () {
|
|
delete globalThis.setTimeout;
|
|
};
|
|
|
|
exports.getSetTimeout = function () {
|
|
return globalThis.setTimeout;
|
|
};
|
|
|
|
exports.checkProcessGlobal = function () {
|
|
console.log("process" in globalThis);
|
|
console.log(Object.getOwnPropertyDescriptor(globalThis, "process") !== undefined);
|
|
};
|
|
|
|
exports.checkWindowGlobal = function () {
|
|
console.log("window" in globalThis);
|
|
console.log(Object.getOwnPropertyDescriptor(globalThis, "window") !== undefined);
|
|
}
|
|
|
|
exports.getFoo = function () {
|
|
return globalThis.foo;
|
|
} |