From 7db0605d456559f1ca9447e6fa778559fe50cc95 Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Sun, 17 Jan 2021 15:28:54 +0000 Subject: fix(op_crates/web): Use WorkerLocation for location in workers (#9084) --- cli/tests/subdir/worker_location.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cli/tests/subdir') diff --git a/cli/tests/subdir/worker_location.ts b/cli/tests/subdir/worker_location.ts index 480032350..89fa83036 100644 --- a/cli/tests/subdir/worker_location.ts +++ b/cli/tests/subdir/worker_location.ts @@ -1,4 +1,6 @@ onmessage = function (): void { - postMessage(self.location.href); + postMessage( + `${location.href}, ${location instanceof WorkerLocation}`, + ); close(); }; -- cgit v1.2.3