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

Fix "report an error" assuming that the muted errors flag is always present on the script #7515

Merged
merged 2 commits into from
Jan 21, 2022

Conversation

takikawa
Copy link
Contributor

@takikawa takikawa commented Jan 20, 2022

This is a small fix for the "report an error" algorithm for scripts. Fixes #7501.

(See WHATWG Working Mode: Changes for more details.)


/acknowledgements.html ( diff )
/webappapis.html ( diff )

Changes "report an error" to check that the argument script is
a classic script before accessing its muted errors field, which is
not defined for other kinds of scripts.

Also applies the change to HostPromiseRejectionTracker.

Fixes whatwg#7501.
Copy link
Member

@domenic domenic left a comment

Choose a reason for hiding this comment

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

Thank you!

@domenic domenic merged commit c5db535 into whatwg:main Jan 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

"report an error" assumes the script is a classic script, but is also used on module scripts
2 participants