summaryrefslogtreecommitdiff
path: root/tests/registry/npm/@denotest/globals/1.0.0/index.js
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2024-07-19 12:37:08 +0900
committerGitHub <noreply@github.com>2024-07-19 12:37:08 +0900
commit76b8ecbb6d8c07d29c34fb0b301cc3bf3351e3aa (patch)
tree228b5bde74244c0a844d61257530d1b8e2eef9e4 /tests/registry/npm/@denotest/globals/1.0.0/index.js
parent3bda8eb4fe059fd79a522c9277a5a872f75dc270 (diff)
fix(ext/node): do not expose `self` global in node (#24637)
closes #23727
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.js7
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
+}