[Webkit-unassigned] [Bug 63011] New: IDL generator should throw TypeError instead of SyntaxError on not enough arguments

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jun 20 14:06:21 PDT 2011


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

           Summary: IDL generator should throw TypeError instead of
                    SyntaxError on not enough arguments
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: pilgrim at chromium.org
                CC: fishd at chromium.org, abarth at webkit.org


As per http://krijnhoetmer.nl/irc-logs/whatwg/20110618#l-269 , WebIDL mandates that we throw TypeError when a function is called with too few required arguments. WebKit currently throws SyntaxError. This patch rectifies that, as well as fixing the ~20 tests that rely on the old behavior.

NOTE: there are 2 image-based SVG LayoutTests that need rebaselining after this patch lands. This patch does not change visible behavior of SVG; the images just happened to capture the unrelated text "SyntaxError: not enough arguments" (which is now "TypeError: not enough arguments"). The tests in question are

svg/dom/SVGNumberList-basics.xhtml
svg/dom/SVGStringList-basics.xhtml

-- 
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