diff options
Diffstat (limited to 'cli/tests/testdata/085_dynamic_import_async_error.ts')
-rw-r--r-- | cli/tests/testdata/085_dynamic_import_async_error.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/tests/testdata/085_dynamic_import_async_error.ts b/cli/tests/testdata/085_dynamic_import_async_error.ts index aa5ff7277..998e7ed3e 100644 --- a/cli/tests/testdata/085_dynamic_import_async_error.ts +++ b/cli/tests/testdata/085_dynamic_import_async_error.ts @@ -1,5 +1,7 @@ try { await import("./delayed_error.ts"); } catch (error) { - console.log(`Caught: ${error.stack}`); + if (error instanceof Error) { + console.log(`Caught: ${error.stack}`); + } } |