summaryrefslogtreecommitdiff
path: root/cli/tests/subdir
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2020-10-11 23:04:43 +0100
committerGitHub <noreply@github.com>2020-10-12 09:04:43 +1100
commit5f3028af13c25fb3af8f36d3d5913ef0688e5ce7 (patch)
treed997dc40bb558345fa490eaa04730c629c5275f8 /cli/tests/subdir
parent265a9fb9323a11067b4b826acc7624f2e62f1102 (diff)
fix(cli/rt/main): Add global interface objects (#7875)
Diffstat (limited to 'cli/tests/subdir')
-rw-r--r--cli/tests/subdir/worker_globals.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/cli/tests/subdir/worker_globals.ts b/cli/tests/subdir/worker_globals.ts
new file mode 100644
index 000000000..a9e7efd85
--- /dev/null
+++ b/cli/tests/subdir/worker_globals.ts
@@ -0,0 +1,10 @@
+onmessage = function (): void {
+ postMessage(
+ [
+ self instanceof DedicatedWorkerGlobalScope,
+ self instanceof WorkerGlobalScope,
+ self instanceof EventTarget,
+ ].join(", "),
+ );
+ close();
+};