summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/070_location.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata/070_location.ts')
-rw-r--r--cli/tests/testdata/070_location.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/tests/testdata/070_location.ts b/cli/tests/testdata/070_location.ts
index 61256dcbc..149de5423 100644
--- a/cli/tests/testdata/070_location.ts
+++ b/cli/tests/testdata/070_location.ts
@@ -4,5 +4,7 @@ console.log(location);
try {
location.hostname = "bar";
} catch (error) {
- console.log(error.toString());
+ if (error instanceof Error) {
+ console.log(error.toString());
+ }
}