W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2013

[Bug 24000] New: DOMException should extend ES Error

From: <bugzilla@jessica.w3.org>
Date: Thu, 05 Dec 2013 08:33:20 +0000
To: www-dom@w3.org
Message-ID: <bug-24000-4009@http.www.w3.org/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: 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 on the CC list for the bug.
Received on Thursday, 5 December 2013 08:33:23 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:21 UTC