diff options
| author | Leo Kettmeir <crowlkats@toaxl.com> | 2021-12-29 19:34:13 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-29 19:34:13 +0100 |
| commit | 167982be9e7af35e6c12ef6c40c002200bf5e0c0 (patch) | |
| tree | b064a4db5beca73e0235e9fc7b15fc624f3b13ab /cli/tests/testdata/error_cause_recursive.ts.out | |
| parent | 42777f25416ca292c56587e6cc4dfe9f50bebd81 (diff) | |
feat: output `cause` on JS runtime errors (#13209)
Diffstat (limited to 'cli/tests/testdata/error_cause_recursive.ts.out')
| -rw-r--r-- | cli/tests/testdata/error_cause_recursive.ts.out | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/cli/tests/testdata/error_cause_recursive.ts.out b/cli/tests/testdata/error_cause_recursive.ts.out new file mode 100644 index 000000000..8bfda02fb --- /dev/null +++ b/cli/tests/testdata/error_cause_recursive.ts.out @@ -0,0 +1,14 @@ +[WILDCARD] +error: Uncaught Error: bar +const y = new Error("bar", { cause: x }); + ^ + at file:///[WILDCARD]/error_cause_recursive.ts:2:11 +Caused by: Uncaught Error: foo +const x = new Error("foo"); + ^ + at file:///[WILDCARD]/error_cause_recursive.ts:1:11 +Caused by: Uncaught Error: bar +const y = new Error("bar", { cause: x }); + ^ + at file:///[WILDCARD]/error_cause_recursive.ts:2:11 +[WILDCARD]
\ No newline at end of file |
