diff options
Diffstat (limited to 'tests/testdata')
| -rw-r--r-- | tests/testdata/run/resolve_dns.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/testdata/run/resolve_dns.ts b/tests/testdata/run/resolve_dns.ts index a2d0fd046..163a68f33 100644 --- a/tests/testdata/run/resolve_dns.ts +++ b/tests/testdata/run/resolve_dns.ts @@ -67,7 +67,7 @@ try { // @ts-ignore testing invalid overloads await Deno.resolveDns("example.com", "SSHFP", nameServer); } catch (e) { - console.log(e.message); + console.log((e as Error).message); } try { @@ -78,7 +78,7 @@ try { signal: ac.signal, }); } catch (e) { - console.log(e.name); + console.log((e as Error).name); } try { @@ -89,5 +89,5 @@ try { signal: ac.signal, }); } catch (e) { - console.log(e.name); + console.log((e as Error).name); } |
