summaryrefslogtreecommitdiff
path: root/tests/registry
diff options
context:
space:
mode:
Diffstat (limited to 'tests/registry')
-rw-r--r--tests/registry/npm/@denotest/globals/1.0.0/index.d.ts3
-rw-r--r--tests/registry/npm/@denotest/globals/1.0.0/index.js7
2 files changed, 8 insertions, 2 deletions
diff --git a/tests/registry/npm/@denotest/globals/1.0.0/index.d.ts b/tests/registry/npm/@denotest/globals/1.0.0/index.d.ts
index 1bbb82047..76dd781db 100644
--- a/tests/registry/npm/@denotest/globals/1.0.0/index.d.ts
+++ b/tests/registry/npm/@denotest/globals/1.0.0/index.d.ts
@@ -17,5 +17,6 @@ export function getSetTimeout(): typeof setTimeout;
export function checkProcessGlobal(): void;
export function checkWindowGlobal(): void;
+export function checkSelfGlobal(): void;
-export function getFoo(): string; \ No newline at end of file
+export function getFoo(): string;
diff --git a/tests/registry/npm/@denotest/globals/1.0.0/index.js b/tests/registry/npm/@denotest/globals/1.0.0/index.js
index b946bbd2a..64f913b37 100644
--- a/tests/registry/npm/@denotest/globals/1.0.0/index.js
+++ b/tests/registry/npm/@denotest/globals/1.0.0/index.js
@@ -20,6 +20,11 @@ exports.checkWindowGlobal = function () {
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;
-} \ No newline at end of file
+}