|
| 1 | +Error: Number error cause |
| 2 | + at * { |
| 3 | + [cause]: 42 |
| 4 | +} |
| 5 | +Error: Object cause |
| 6 | + at * { |
| 7 | + [cause]: { |
| 8 | + message: 'Unique', |
| 9 | + name: 'Error', |
| 10 | + stack: 'Error: Unique\n' + |
| 11 | + ' at Module._compile (node:internal*modules*cjs*loader:*:*)' |
| 12 | + } |
| 13 | +} |
| 14 | +Error: undefined cause |
| 15 | + at * { |
| 16 | + [cause]: undefined |
| 17 | +} |
| 18 | +Error: cause that throws |
| 19 | + at * { |
| 20 | + [cause]: [Getter] |
| 21 | +} |
| 22 | +RangeError: New Stack Frames |
| 23 | + at * { |
| 24 | + [cause]: FoobarError: Individual message |
| 25 | + at Object.<anonymous> \x1B[90m(/\x1B[39mtest*util_inspect_error_cause.js:*:*\x1B[90m)\x1B[39m { |
| 26 | + status: \x1B[32m'Feeling good'\x1B[39m, |
| 27 | + extraProperties: \x1B[32m'Yes!'\x1B[39m, |
| 28 | + [cause]: TypeError: Inner error |
| 29 | + at Object.<anonymous> \x1B[90m(/\x1B[39mtest*util_inspect_error_cause.js:*:*\x1B[90m)\x1B[39m |
| 30 | + } |
| 31 | +} |
| 32 | +Error: Stack causes |
| 33 | + at * |
| 34 | +*[90m at *[39m |
| 35 | +*[90m ... 6 lines matching cause stack trace ...*[39m |
| 36 | +*[90m at *[39m { |
| 37 | + [cause]: FoobarError: Individual message |
| 38 | + at Object.<anonymous> \x1B[90m(/\x1B[39mtest*util_inspect_error_cause.js:*:*\x1B[90m)\x1B[39m { |
| 39 | + status: \x1B[32m'Feeling good'\x1B[39m, |
| 40 | + extraProperties: \x1B[32m'Yes!'\x1B[39m, |
| 41 | + [cause]: TypeError: Inner error |
| 42 | + at * |
| 43 | + } |
| 44 | +} |
| 45 | +RangeError: New Stack Frames |
| 46 | + at * |
| 47 | +*[90m at *[39m { |
| 48 | + [cause]: Error: Stack causes |
| 49 | + at * |
| 50 | + *[90m at *[39m |
| 51 | + *[90m ... 6 lines matching cause stack trace ...*[39m |
| 52 | + *[90m at *[39m { |
| 53 | + [cause]: FoobarError: Individual message |
| 54 | + at Object.<anonymous> \x1B[90m(/\x1B[39mtest*util_inspect_error_cause.js:*:*\x1B[90m)\x1B[39m { |
| 55 | + status: \x1B[32m'Feeling good'\x1B[39m, |
| 56 | + extraProperties: \x1B[32m'Yes!'\x1B[39m, |
| 57 | + [cause]: TypeError: Inner error |
| 58 | + at Object.<anonymous> \x1B[90m(/\x1B[39mtest*util_inspect_error_cause.js:*:*\x1B[90m)\x1B[39m |
| 59 | + } |
| 60 | + } |
| 61 | +} |
| 62 | +RangeError: New Stack Frames |
| 63 | + at * { |
| 64 | + [cause]: FoobarError: Individual message |
| 65 | + at * { |
| 66 | + status: 'Feeling good', |
| 67 | + extraProperties: 'Yes!', |
| 68 | + [cause]: TypeError: Inner error |
| 69 | + at * |
| 70 | + } |
| 71 | +} |
| 72 | +Error: Stack causes |
| 73 | + at * { |
| 74 | + [cause]: FoobarError: Individual message |
| 75 | + at * { |
| 76 | + status: 'Feeling good', |
| 77 | + extraProperties: 'Yes!', |
| 78 | + [cause]: TypeError: Inner error |
| 79 | + at * |
| 80 | + } |
| 81 | +} |
| 82 | +RangeError: New Stack Frames |
| 83 | + at * { |
| 84 | + [cause]: Error: Stack causes |
| 85 | + at * { |
| 86 | + [cause]: FoobarError: Individual message |
| 87 | + at * { |
| 88 | + status: 'Feeling good', |
| 89 | + extraProperties: 'Yes!', |
| 90 | + [cause]: TypeError: Inner error |
| 91 | + at * |
| 92 | + } |
| 93 | + } |
| 94 | +} |
0 commit comments