Implement self.reportError()
Categories
(Core :: DOM: Core & HTML, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox93 | --- | fixed |
People
(Reporter: annevk, Assigned: evilpie)
References
(Blocks 1 open bug, )
Details
(Keywords: dev-doc-complete)
Attachments
(1 file)
This allows libraries to emulate the behavior of throwing exceptions in an event listener (triggers self.onerror).
HTML change: https://github.com/whatwg/html/pull/1196.
Tests: https://github.com/web-platform-tests/wpt/pull/29738.
Updated•3 years ago
|
Assignee | ||
Comment 2•3 years ago
|
||
This is mostly just copying and adjusting code from AutoJSAPI::ReportException
.
For nsGlobalWindowInner::ReportError
, we might need to move this to outer, but I am not sure when that is actually required.
I also wasn't sure how we want to do the isChrome
check.
Updated•3 years ago
|
Comment 4•3 years ago
|
||
bugherder |
Comment 5•3 years ago
•
|
||
Hi
FYI docs work for this can be tracked in https://github.com/mdn/content/issues/8608.
I'm still working on how/where to document because global things are a bit spread out. As a starting point though I have created https://github.com/mdn/content/pull/9314 (reportError()
global function) and would welcome feedback.
Updated•3 years ago
|
Description
•