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

Make it possible to disable error catching #1073

Closed
capricorn86 opened this issue Sep 18, 2023 · 0 comments · Fixed by #1074
Closed

Make it possible to disable error catching #1073

capricorn86 opened this issue Sep 18, 2023 · 0 comments · Fixed by #1074
Assignees
Labels
enhancement New feature or request

Comments

@capricorn86
Copy link
Owner

In test frameworks and some environments it is beneficial if exceptions thrown are catched by the environment and not by Happy DOM. We should make it possible to disable the try and catch and let the framework handle it.

@capricorn86 capricorn86 added the enhancement New feature or request label Sep 18, 2023
@capricorn86 capricorn86 self-assigned this Sep 18, 2023
capricorn86 added a commit that referenced this issue Sep 18, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
…ing. Happy DOM will by default try to catch errors in functionality such as scripts, timers and event listeners. This setting makes it possible it possible to disable this behaviour.
capricorn86 added a commit that referenced this issue Sep 18, 2023

Verified

This commit was signed with the committer’s verified signature.
christophehurpeau Christophe Hurpeau
…to-disable-error-catching

#1073@minor: Adds support for a new setting called disableErrorCaptur…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant