summaryrefslogtreecommitdiff
path: root/cli/tests/workers/worker_location.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/workers/worker_location.ts')
-rw-r--r--cli/tests/workers/worker_location.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/tests/workers/worker_location.ts b/cli/tests/workers/worker_location.ts
new file mode 100644
index 000000000..89fa83036
--- /dev/null
+++ b/cli/tests/workers/worker_location.ts
@@ -0,0 +1,6 @@
+onmessage = function (): void {
+ postMessage(
+ `${location.href}, ${location instanceof WorkerLocation}`,
+ );
+ close();
+};