2011-06-20 Mark Pilgrim <pilgrim@chromium.org>
authorabarth@webkit.org <abarth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 20 Jun 2011 23:54:07 +0000 (23:54 +0000)
committerabarth@webkit.org <abarth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 20 Jun 2011 23:54:07 +0000 (23:54 +0000)
commite84ff4f73bd0fcdad91930a8232ab50c4a721fcc
tree48c36994cf1a38261a43991bb606cb045124fa2c
parentd889878490bb9be4c0e72c181c1580aef60750be
2011-06-20  Mark Pilgrim  <pilgrim@chromium.org>

        Reviewed by Adam Barth.

        IDL generator should throw TypeError instead of SyntaxError on not enough arguments
        https://bugs.webkit.org/show_bug.cgi?id=63011

        To align with WebIDL, we should throw TypeError whenever a function
        is called with missing required arguments.

        * fast/canvas/canvas-overloads-drawImageFromRect-expected.txt:
        * fast/canvas/canvas-overloads-fillText-expected.txt:
        * fast/canvas/canvas-overloads-strokeText-expected.txt:
        * fast/canvas/script-tests/canvas-overloads-drawImageFromRect.js:
        * fast/canvas/script-tests/canvas-overloads-fillText.js:
        * fast/canvas/script-tests/canvas-overloads-strokeText.js:
        * fast/canvas/webgl/data-view-test-expected.txt:
        * http/tests/xmlhttprequest/exceptions-expected.txt:
        * platform/chromium-mac/svg/dom/svgpath-out-of-bounds-getPathSeg-expected.txt:
        * platform/chromium-win/svg/dom/svgpath-out-of-bounds-getPathSeg-expected.txt:
        * svg/dom/SVGAngle-expected.txt:
        * svg/dom/SVGColor-expected.txt:
        * svg/dom/SVGLength-expected.txt:
        * svg/dom/SVGLengthList-basics-expected.txt:
        * svg/dom/SVGMatrix-expected.txt:
        * svg/dom/SVGNumberList-basics-expected.txt:
        * svg/dom/SVGPaint-expected.txt:
        * svg/dom/SVGPoint-expected.txt:
        * svg/dom/SVGPointList-basics-expected.txt:
        * svg/dom/SVGStringList-basics-expected.txt:
        * svg/dom/SVGTransform-expected.txt:
        * svg/dom/SVGTransformList-basics-expected.txt:
        * svg/dom/SVGTransformList-expected.txt:
        * svg/dom/svgpath-out-of-bounds-getPathSeg-expected.txt:
2011-06-20  Mark Pilgrim  <pilgrim@chromium.org>

        Reviewed by Adam Barth.

        IDL generator should throw TypeError instead of SyntaxError on not enough arguments
        https://bugs.webkit.org/show_bug.cgi?id=63011

        To align with WebIDL, we should throw TypeError whenever a function
        is called with missing required arguments.

        * bindings/scripts/CodeGeneratorJS.pm:
        * bindings/scripts/CodeGeneratorV8.pm:
        * bindings/scripts/test/V8/V8TestObj.cpp:
        (WebCore::TestObjInternal::methodThatRequiresAllArgsAndThrowsCallback):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@89315 268f45cc-cd09-0410-ab3c-d52691b4dbfc
30 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/canvas/canvas-overloads-drawImageFromRect-expected.txt
LayoutTests/fast/canvas/canvas-overloads-fillText-expected.txt
LayoutTests/fast/canvas/canvas-overloads-strokeText-expected.txt
LayoutTests/fast/canvas/script-tests/canvas-overloads-drawImageFromRect.js
LayoutTests/fast/canvas/script-tests/canvas-overloads-fillText.js
LayoutTests/fast/canvas/script-tests/canvas-overloads-strokeText.js
LayoutTests/fast/canvas/webgl/data-view-test-expected.txt
LayoutTests/http/tests/xmlhttprequest/exceptions-expected.txt
LayoutTests/platform/chromium-mac/svg/dom/svgpath-out-of-bounds-getPathSeg-expected.txt
LayoutTests/platform/chromium-win/svg/dom/svgpath-out-of-bounds-getPathSeg-expected.txt
LayoutTests/svg/dom/SVGAngle-expected.txt
LayoutTests/svg/dom/SVGColor-expected.txt
LayoutTests/svg/dom/SVGLength-expected.txt
LayoutTests/svg/dom/SVGLengthList-basics-expected.txt
LayoutTests/svg/dom/SVGMatrix-expected.txt
LayoutTests/svg/dom/SVGNumberList-basics-expected.txt
LayoutTests/svg/dom/SVGPaint-expected.txt
LayoutTests/svg/dom/SVGPoint-expected.txt
LayoutTests/svg/dom/SVGPointList-basics-expected.txt
LayoutTests/svg/dom/SVGStringList-basics-expected.txt
LayoutTests/svg/dom/SVGTransform-expected.txt
LayoutTests/svg/dom/SVGTransformList-basics-expected.txt
LayoutTests/svg/dom/SVGTransformList-expected.txt
LayoutTests/svg/dom/svgpath-out-of-bounds-getPathSeg-expected.txt
Source/WebCore/ChangeLog
Source/WebCore/bindings/scripts/CodeGeneratorJS.pm
Source/WebCore/bindings/scripts/CodeGeneratorV8.pm
Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp
Source/WebCore/bindings/scripts/test/V8/V8TestObj.cpp