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