Skip to content

Only look up .stack property on exception objects#905

Merged
bnoordhuis merged 1 commit intoquickjs-ng:masterfrom
bnoordhuis:is-exception
Feb 10, 2025
Merged

Only look up .stack property on exception objects#905
bnoordhuis merged 1 commit intoquickjs-ng:masterfrom
bnoordhuis:is-exception

Conversation

@bnoordhuis
Copy link
Copy Markdown
Contributor

Without this additional check, run-test262 prints "TypeError: cannot read property 'stack' of undefined" when a test throws undefined, obscuring the actual error.

Without this additional check, run-test262 prints "TypeError: cannot
read property 'stack' of undefined" when a test throws undefined,
obscuring the actual error.
@bnoordhuis bnoordhuis merged commit f507557 into quickjs-ng:master Feb 10, 2025
@bnoordhuis bnoordhuis deleted the is-exception branch February 10, 2025 08:58
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.

2 participants