summaryrefslogtreecommitdiff
path: root/tests/testdata/run/error_cause.ts
blob: 385ce2a03b1101be884795a3e544845c0e7e6795 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
function a() {
  // deno-lint-ignore no-explicit-any
  throw new Error("foo", { cause: new Error("bar", { cause: "deno" as any }) });
}

function b() {
  a();
}

function c() {
  b();
}

c();