summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/error_023_stack_async.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata/error_023_stack_async.ts')
-rw-r--r--cli/tests/testdata/error_023_stack_async.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/tests/testdata/error_023_stack_async.ts b/cli/tests/testdata/error_023_stack_async.ts
index 99e676e26..fdabaa5df 100644
--- a/cli/tests/testdata/error_023_stack_async.ts
+++ b/cli/tests/testdata/error_023_stack_async.ts
@@ -7,6 +7,8 @@ const p = (async () => {
try {
await p;
} catch (error) {
- console.log(error.stack);
+ if (error instanceof Error) {
+ console.log(error.stack);
+ }
throw error;
}