From 5f3028af13c25fb3af8f36d3d5913ef0688e5ce7 Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Sun, 11 Oct 2020 23:04:43 +0100 Subject: fix(cli/rt/main): Add global interface objects (#7875) --- cli/tests/subdir/worker_globals.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 cli/tests/subdir/worker_globals.ts (limited to 'cli/tests/subdir') 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(); +}; -- cgit v1.2.3