summaryrefslogtreecommitdiff
path: root/tests/registry/npm/@denotest/check-worker-globals/1.0.0/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/registry/npm/@denotest/check-worker-globals/1.0.0/index.js')
-rw-r--r--tests/registry/npm/@denotest/check-worker-globals/1.0.0/index.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/registry/npm/@denotest/check-worker-globals/1.0.0/index.js b/tests/registry/npm/@denotest/check-worker-globals/1.0.0/index.js
new file mode 100644
index 000000000..8da68f791
--- /dev/null
+++ b/tests/registry/npm/@denotest/check-worker-globals/1.0.0/index.js
@@ -0,0 +1,7 @@
+if (typeof self !== "undefined") {
+ throw new Error("self is defined");
+}
+
+if (typeof WorkerGlobalScope !== "undefined") {
+ throw new Error("WorkerGlobalScope is defined");
+}