-
Notifications
You must be signed in to change notification settings - Fork 70
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
Add a console.* API that invokes the HTML "report the error" algorithm (which calls window.onerror) #50
Comments
Need to consider workers and worklets also. |
@zcorpan console is exposed to workers. Dunno about worklets. |
Right, I mean we need to make sure this API invokes the right hooks in those contexts (or define to do nothing or throw if it shouldn't work there). https://html.spec.whatwg.org/multipage/workers.html#runtime-script-errors-2 is different from https://html.spec.whatwg.org/multipage/webappapis.html#runtime-script-errors-in-documents |
Now that I realize this would trigger window.onerror I no longer think this is a |
Trying to gather implementer interest over at whatwg/html#1196, for any implementers watching this repo. |
This allows libraries to emulate the behavior of an exception thrown in an event listener callback. Additional context: whatwg/console#50. Tests: web-platform-tests/wpt#29738. Co-authored-by: Domenic Denicola <[email protected]>
This allows libraries to emulate the behavior of an exception thrown in an event listener callback. Additional context: whatwg/console#50. Tests: web-platform-tests/wpt#29738. Co-authored-by: Domenic Denicola <[email protected]>
See https://lists.w3.org/Archives/Public/public-web-perf/2014Jun/0036.html and https://esdiscuss.org/topic/a-way-of-explicitly-reporting-exceptions for interest.
See https://www.w3.org/Bugs/Public/show_bug.cgi?id=26182 for the previous issue on this (merged into this new one since the idea seems to be to have it on console).
The text was updated successfully, but these errors were encountered: