Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ext/web): use Error.captureStackTrace in DOMException constructor #23986

Merged
merged 2 commits into from
Jun 4, 2024

Conversation

0f-0b
Copy link
Contributor

@0f-0b 0f-0b commented May 26, 2024

This makes DOMException's stack property behave the same as native errors' – stack is now an own accessor property on every instance, and the getter calls Error.prepareStackTrace.

denoland/deno_core#754 depends on this.

@0f-0b 0f-0b force-pushed the dom-exception-native-stack branch from 1cf3e8b to b79f4e5 Compare May 29, 2024 16:55
@0f-0b 0f-0b force-pushed the dom-exception-native-stack branch from b79f4e5 to e346d4b Compare June 4, 2024 20:15
@0f-0b 0f-0b mentioned this pull request Jun 4, 2024
Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@bartlomieju bartlomieju merged commit 29a075d into denoland:main Jun 4, 2024
17 checks passed
@0f-0b 0f-0b deleted the dom-exception-native-stack branch June 4, 2024 23:11
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