diff options
Diffstat (limited to 'tests/registry/npm/@denotest/globals/1.0.0/index.js')
-rw-r--r-- | tests/registry/npm/@denotest/globals/1.0.0/index.js | 7 |
1 files changed, 6 insertions, 1 deletions
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 +} |