diff options
| author | Cre3per <12541974+Cre3per@users.noreply.github.com> | 2022-10-16 21:16:46 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-16 21:16:46 +0200 |
| commit | cf1be5e76fc8d62357f1f4a51e610bd4f07a7927 (patch) | |
| tree | 5b200fc717787bea2eeee27d0459d563220b55fa /cli/tests/testdata/error_cause_recursive_tail.ts | |
| parent | 5252ff5dbd1e2adc9e38407be7ea50549612c543 (diff) | |
fix: add error cause in recursive cause tail (#16306)
Diffstat (limited to 'cli/tests/testdata/error_cause_recursive_tail.ts')
| -rw-r--r-- | cli/tests/testdata/error_cause_recursive_tail.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cli/tests/testdata/error_cause_recursive_tail.ts b/cli/tests/testdata/error_cause_recursive_tail.ts new file mode 100644 index 000000000..51e7fa6d9 --- /dev/null +++ b/cli/tests/testdata/error_cause_recursive_tail.ts @@ -0,0 +1,5 @@ +const foo = new Error("foo"); +const bar = new Error("bar", { cause: foo }); +const baz = new Error("baz", { cause: bar }); +foo.cause = bar; +throw baz; |
