[Webkit-unassigned] [Bug 101502] New: Wrong error type is thrown for type errors in callbacks

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Nov 7 12:40:56 PST 2012


https://bugs.webkit.org/show_bug.cgi?id=101502

           Summary: Wrong error type is thrown for type errors in
                    callbacks
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
               URL: http://www.w3.org/TR/WebIDL/#es-callback-function
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: arv at chromium.org
                CC: adamk at chromium.org, jsbell at chromium.org


"4.2.21. Callback function types

IDL callback function types are represented by ECMAScript Function objects.

An ECMAScript value V is converted to an IDL callback function type value by running the following algorithm:

If V is not a Function object, then throw a TypeError.
Return the IDL callback function type value that represents a reference to that Function object.
The result of converting an IDL callback function type value to an ECMAScript value is a reference to the same object that the IDL callback function type value represents."

We throw a TYPE_MISMATCH_ERR DOMException instead.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list