[Bug 24000] New: DOMException should extend ES Error

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: annevk@annevk.nl
          Reporter: w3c@marcosc.com
        QA Contact: public-webapps-bugzilla@w3.org
                CC: mike@w3.org, www-dom@w3.org

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 the QA Contact for the bug.

Received on Thursday, 5 December 2013 08:33:25 UTC