[Bug 24000] New: DOMException should extend ES Error
| Newsgroups | gmane.comp.web.dom.general |
|---|---|
| Message-ID | <[email protected]/Bugs/Public/> |
https://www.w3.org/Bugs/Public/show_bug.cgi?id=24000
Bug ID: 24000
Summary: DOMException should extend ES Error
Product: WebAppsWG
Version: unspecified
Hardware: PC
OS: Windows 3.1
Status: NEW
Severity: normal
Priority: P2
Component: DOM
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected], [email protected]
To make DOMException Promises friendly, the DOMException IDL definition needs
to extend ES Error. See:
https://github.com/domenic/promises-unwrapping/issues/84
Testing the following:
<script>
try {
document.body.appendChild(document.body)
} catch (e) {
alert(e instanceof Error)
}
</script>
The latest versions of Chrome, Safari, and IE return true. FF returns false.
--
You are receiving this mail because:
You are on the CC list for the bug.