Skip to content

Walk the cause chain when dumping uncaught errors#1509

Open
saghul wants to merge 1 commit into
masterfrom
dump-error-cause-chain
Open

Walk the cause chain when dumping uncaught errors#1509
saghul wants to merge 1 commit into
masterfrom
dump-error-cause-chain

Conversation

@saghul
Copy link
Copy Markdown
Contributor

@saghul saghul commented May 22, 2026

Example:

var e = new Error('inner!');

throw new Error('outer!', { cause: e });
$ ./build/qjs t.js
Error: outer!
    at <anonymous> (t.js:3:11)

Caused by: Error: inner!
    at <anonymous> (t.js:1:12)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant