diff options
Diffstat (limited to 'cli/tests/testdata/error_024_stack_promise_all.ts')
-rw-r--r-- | cli/tests/testdata/error_024_stack_promise_all.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/tests/testdata/error_024_stack_promise_all.ts b/cli/tests/testdata/error_024_stack_promise_all.ts index ddaf0dbaa..8ca7b203c 100644 --- a/cli/tests/testdata/error_024_stack_promise_all.ts +++ b/cli/tests/testdata/error_024_stack_promise_all.ts @@ -9,6 +9,8 @@ const p = Promise.all([ try { await p; } catch (error) { - console.log(error.stack); + if (error instanceof Error) { + console.log(error.stack); + } throw error; } |