WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
63011
IDL generator should throw TypeError instead of SyntaxError on not enough arguments
https://bugs.webkit.org/show_bug.cgi?id=63011
Summary
IDL generator should throw TypeError instead of SyntaxError on not enough arg...
Mark Pilgrim (Google)
Reported
2011-06-20 14:06:21 PDT
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
Attachments
Patch
(50.12 KB, patch)
2011-06-20 14:12 PDT
,
Mark Pilgrim (Google)
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ec2-cq-02
(1.67 MB, application/zip)
2011-06-20 14:58 PDT
,
WebKit Review Bot
no flags
Details
Patch
(50.95 KB, patch)
2011-06-20 15:24 PDT
,
Mark Pilgrim (Google)
abarth
: review+
webkit.review.bot
: commit-queue-
Details
Formatted Diff
Diff
Archive of layout-test-results from ec2-cq-01
(1.39 MB, application/zip)
2011-06-20 16:47 PDT
,
WebKit Review Bot
no flags
Details
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Mark Pilgrim (Google)
Comment 1
2011-06-20 14:12:16 PDT
Created
attachment 97856
[details]
Patch
Adam Barth
Comment 2
2011-06-20 14:22:38 PDT
We should coordinate landing with the gardner due to the image rebaselines. Maybe ping the gardener on #webkit?
WebKit Review Bot
Comment 3
2011-06-20 14:58:40 PDT
Comment on
attachment 97856
[details]
Patch Rejecting
attachment 97856
[details]
from commit-queue. Failed to run "['./Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '--bot-id=ec2-cq-02', '--port..." exit_code: 2 Last 500 characters of output: ges found. Detecting changes in WebDOMTestObj.cpp... No changes found. Testing the CPP generator on TestInterface.idl Detecting changes in WebDOMTestInterface.cpp... No changes found. Detecting changes in WebDOMTestInterface.h... No changes found. Testing the CPP generator on TestCallback.idl Detecting changes in WebDOMTestCallback.h... No changes found. Detecting changes in WebDOMTestCallback.cpp... No changes found. (To update the reference files, execute "run-bindings-tests --reset-results") Full output:
http://queues.webkit.org/results/8909670
WebKit Review Bot
Comment 4
2011-06-20 14:58:45 PDT
Created
attachment 97863
[details]
Archive of layout-test-results from ec2-cq-02 The attached test failures were seen while running run-webkit-tests on the commit-queue. Bot: ec2-cq-02 Port: Chromium Platform: Linux-2.6.35-28-virtual-x86_64-with-Ubuntu-10.10-maverick
Adam Barth
Comment 5
2011-06-20 15:02:13 PDT
Caught by the run-bindings-tests!
Mark Pilgrim (Google)
Comment 6
2011-06-20 15:24:56 PDT
Created
attachment 97868
[details]
Patch
WebKit Review Bot
Comment 7
2011-06-20 16:47:32 PDT
Comment on
attachment 97868
[details]
Patch Rejecting
attachment 97868
[details]
from commit-queue. Failed to run "['./Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '--bot-id=ec2-cq-01', '--port..." exit_code: 2 Last 500 characters of output: ace.cpp... No changes found. Testing the CPP generator on TestMediaQueryListListener.idl Detecting changes in WebDOMTestMediaQueryListListener.h... No changes found. Detecting changes in WebDOMTestMediaQueryListListener.cpp... No changes found. Testing the CPP generator on TestInterface.idl Detecting changes in WebDOMTestInterface.cpp... No changes found. Detecting changes in WebDOMTestInterface.h... No changes found. (To update the reference files, execute "run-bindings-tests --reset-results") Full output:
http://queues.webkit.org/results/8909717
WebKit Review Bot
Comment 8
2011-06-20 16:47:37 PDT
Created
attachment 97888
[details]
Archive of layout-test-results from ec2-cq-01 The attached test failures were seen while running run-webkit-tests on the commit-queue. Bot: ec2-cq-01 Port: Chromium Platform: Linux-2.6.35-28-virtual-x86_64-with-Ubuntu-10.10-maverick
Adam Barth
Comment 9
2011-06-20 16:48:56 PDT
I'll land this patch for you.
Adam Barth
Comment 10
2011-06-20 16:54:12 PDT
Committed
r89315
: <
http://trac.webkit.org/changeset/89315
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug