Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Issue 24203002: Improve generated "Not enough arguments." TypeError exceptions. (Closed)

Created:
7 years, 3 months ago by Mike West
Modified:
7 years, 3 months ago
Reviewers:
marja
CC:
blink-reviews, Nils Barth (inactive), kojih, jsbell+bindings_chromium.org, abarth-chromium, marja+watch_chromium.org, adamk+blink_chromium.org, Michael van Ouwerkerk, haraken, Nate Chapin, do-not-use
Visibility:
Public.

Description

Improve generated "Not enough arguments." TypeError exceptions. BUG=270033 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=157966

Patch Set 1 #

Patch Set 2 : FAIL. #

Total comments: 5

Patch Set 3 : yay #

Patch Set 4 : NeedsRebaseline #

Unified diffs Side-by-side diffs Delta from patch set Stats (+564 lines, -499 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M LayoutTests/crypto/digest-expected.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/editing/pasteboard/data-transfer-items-drag-drop-string.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/editing/pasteboard/data-transfer-items-drag-drop-string-expected.txt View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/animation/request-animation-frame-missing-arguments-expected.txt View 1 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/canvas/canvas-lineDash-invalid-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/canvas/canvas-overloads-drawImage-expected.txt View 1 2 chunks +5 lines, -5 lines 0 comments Download
M LayoutTests/fast/canvas/canvas-overloads-drawImageFromRect-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/canvas/canvas-overloads-fillText-expected.txt View 1 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/canvas/canvas-overloads-setFillColor-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/canvas/canvas-overloads-setShadow-expected.txt View 1 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/canvas/canvas-overloads-setStrokeColor-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/canvas/canvas-overloads-strokeText-expected.txt View 1 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/canvas/drawImage-with-valid-image.html View 1 3 chunks +7 lines, -5 lines 0 comments Download
M LayoutTests/fast/canvas/drawImage-with-valid-image-expected.txt View 1 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/canvas/script-tests/canvas-lineDash-invalid.js View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/canvas/script-tests/canvas-overloads-drawImage.js View 1 2 chunks +9 lines, -6 lines 0 comments Download
M LayoutTests/fast/canvas/script-tests/canvas-overloads-drawImageFromRect.js View 1 1 chunk +4 lines, -2 lines 0 comments Download
M LayoutTests/fast/canvas/script-tests/canvas-overloads-fillText.js View 1 1 chunk +7 lines, -4 lines 0 comments Download
M LayoutTests/fast/canvas/script-tests/canvas-overloads-setFillColor.js View 1 1 chunk +5 lines, -2 lines 0 comments Download
M LayoutTests/fast/canvas/script-tests/canvas-overloads-setShadow.js View 1 1 chunk +7 lines, -4 lines 0 comments Download
M LayoutTests/fast/canvas/script-tests/canvas-overloads-setStrokeColor.js View 1 1 chunk +5 lines, -2 lines 0 comments Download
M LayoutTests/fast/canvas/script-tests/canvas-overloads-strokeText.js View 1 1 chunk +6 lines, -4 lines 0 comments Download
M LayoutTests/fast/canvas/webgl/context-creation-and-destruction-expected.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/canvas/webgl/texImageTest-expected.txt View 1 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/dom/DOMImplementation/createDocument-namespace-err-expected.txt View 1 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/dom/DOMImplementation/createDocumentType-err-expected.txt View 1 1 chunk +9 lines, -9 lines 0 comments Download
M LayoutTests/fast/dom/DOMImplementation/script-tests/createDocument-namespace-err.js View 1 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/dom/DOMImplementation/script-tests/createDocumentType-err.js View 1 1 chunk +13 lines, -9 lines 0 comments Download
M LayoutTests/fast/dom/Element/client-rect-list-argument.html View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/dom/Element/client-rect-list-argument-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/dom/Geolocation/not-enough-arguments.html View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/dom/Geolocation/not-enough-arguments-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/dom/HTMLElement/class-list-expected.txt View 2 chunks +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/dom/HTMLElement/class-list-quirks-expected.txt View 2 chunks +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/dom/HTMLSelectElement/select-element-item-argument.html View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/dom/HTMLSelectElement/select-element-item-argument-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/dom/MutationObserver/observe-exceptions-expected.txt View 1 chunk +4 lines, -4 lines 0 comments Download
M LayoutTests/fast/dom/Window/atob-btoa.html View 1 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/dom/Window/atob-btoa-expected.txt View 1 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/dom/Window/window-postmessage-clone-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/dom/characterdata-api-arguments.html View 1 4 chunks +10 lines, -10 lines 0 comments Download
M LayoutTests/fast/dom/characterdata-api-arguments-expected.txt View 1 4 chunks +10 lines, -10 lines 0 comments Download
M LayoutTests/fast/dom/document-all-tags-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/dom/implementation-api-args.html View 1 2 chunks +5 lines, -5 lines 0 comments Download
M LayoutTests/fast/dom/implementation-api-args-expected.txt View 1 2 chunks +5 lines, -5 lines 0 comments Download
M LayoutTests/fast/dom/navigator-detached-no-crash-expected.txt View 2 chunks +8 lines, -8 lines 0 comments Download
M LayoutTests/fast/dom/navigator-vibration-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/dom/nodelist-item-parameter.html View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/dom/nodelist-item-parameter-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/dom/set-custom-validity-with-too-few-arguments-expected.txt View 1 chunk +4 lines, -4 lines 0 comments Download
M LayoutTests/fast/dom/shadow/css-hostrule-api.html View 1 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/dom/shadow/css-hostrule-api-expected.txt View 1 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/dom/text-api-arguments.html View 1 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/dom/text-api-arguments-expected.txt View 1 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/events/clipboard-dataTransferItemList-remove.html View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/events/clipboard-dataTransferItemList-remove-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/events/drag-and-drop-set-drag-data-arguments.html View 1 1 chunk +2 lines, -3 lines 0 comments Download
M LayoutTests/fast/events/drag-and-drop-set-drag-data-arguments-expected.txt View 1 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/events/drag-dataTransferItemList.html View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/events/drag-dataTransferItemList-expected.txt View 1 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/events/touch/document-create-touch-list-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/eventsource/eventsource-constructor-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/files/create-blob-url-crash-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/files/not-enough-arguments-expected.txt View 1 1 chunk +5 lines, -5 lines 0 comments Download
M LayoutTests/fast/files/revoke-blob-url-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/files/url-required-arguments-expected.txt View 1 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/filesystem/entry-points-missing-arguments.html View 1 1 chunk +5 lines, -6 lines 0 comments Download
M LayoutTests/fast/filesystem/entry-points-missing-arguments-expected.txt View 1 1 chunk +5 lines, -5 lines 0 comments Download
M LayoutTests/fast/filesystem/filesystem-missing-arguments-expected.txt View 1 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/filesystem/not-enough-arguments-expected.txt View 1 1 chunk +13 lines, -13 lines 0 comments Download
M LayoutTests/fast/filesystem/simple-required-arguments-getdirectory-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/filesystem/simple-required-arguments-getfile-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/filesystem/simple-required-arguments-getmetadata-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/filesystem/simple-required-arguments-remove-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/forms/ValidityState-customError-expected.txt View 1 1 chunk +8 lines, -8 lines 0 comments Download
M LayoutTests/fast/forms/setCustomValidity-arguments-expected.txt View 1 1 chunk +4 lines, -4 lines 0 comments Download
M LayoutTests/fast/js/resources/select-options-remove.js View 1 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/js/select-options-remove-expected.txt View 1 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/mediastream/RTCPeerConnection-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/mediastream/argument-types-expected.txt View 1 1 chunk +10 lines, -10 lines 0 comments Download
M LayoutTests/fast/mediastream/script-tests/argument-types.js View 1 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/speech/speech-input-result-list-not-enough-arguments-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/workers/shared-worker-constructor-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/workers/storage/open-database-inputs-sync-expected.txt View 1 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/workers/worker-constructor-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/websocket/tests/hybi/send-empty-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/websocket/tests/hybi/url-parsing-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/xmlhttprequest/exceptions-expected.txt View 1 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/media/video-buffered-too-few-arguments-expected.txt View 1 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/storage/domstorage/localstorage/missing-arguments.html View 1 1 chunk +5 lines, -7 lines 0 comments Download
M LayoutTests/storage/domstorage/localstorage/missing-arguments-expected.txt View 1 1 chunk +5 lines, -5 lines 0 comments Download
M LayoutTests/storage/indexeddb/createObjectStore-name-argument-required-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/storage/indexeddb/cursor-update-value-argument-required-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/storage/indexeddb/database-name-undefined-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/storage/indexeddb/deleteIndex-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/storage/indexeddb/deleteObjectStore-name-argument-required-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/storage/indexeddb/index-get-key-argument-required-expected.txt View 1 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/storage/indexeddb/keyrange-required-arguments-expected.txt View 1 1 chunk +5 lines, -5 lines 0 comments Download
M LayoutTests/storage/indexeddb/objectStore-required-arguments-expected.txt View 1 1 chunk +8 lines, -8 lines 0 comments Download
M LayoutTests/storage/indexeddb/transaction-and-objectstore-calls-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/storage/indexeddb/transaction-storeNames-required-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/storage/storageinfo-missing-arguments.html View 1 1 chunk +3 lines, -4 lines 0 comments Download
M LayoutTests/storage/storageinfo-missing-arguments-expected.txt View 1 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/svg/dom/SVGAngle-expected.txt View 1 3 chunks +4 lines, -4 lines 0 comments Download
M LayoutTests/svg/dom/SVGColor-expected.txt View 1 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/svg/dom/SVGLength-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/svg/dom/SVGLengthList-basics-expected.txt View 1 2 chunks +8 lines, -8 lines 0 comments Download
M LayoutTests/svg/dom/SVGMatrix-expected.txt View 1 4 chunks +20 lines, -20 lines 0 comments Download
M LayoutTests/svg/dom/SVGNumberList-basics-expected.txt View 1 2 chunks +8 lines, -8 lines 0 comments Download
M LayoutTests/svg/dom/SVGPaint-expected.txt View 1 1 chunk +4 lines, -4 lines 0 comments Download
M LayoutTests/svg/dom/SVGPoint-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/svg/dom/SVGPointList-basics-expected.txt View 1 2 chunks +7 lines, -7 lines 0 comments Download
M LayoutTests/svg/dom/SVGStringList-basics-expected.txt View 1 2 chunks +7 lines, -7 lines 0 comments Download
M LayoutTests/svg/dom/SVGTransform-expected.txt View 1 4 chunks +18 lines, -18 lines 0 comments Download
M LayoutTests/svg/dom/SVGTransformList-basics-expected.txt View 1 2 chunks +8 lines, -8 lines 0 comments Download
M LayoutTests/svg/dom/SVGTransformList-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/svg/dom/svgpath-out-of-bounds-getPathSeg-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/svg/text/svgtextcontentelement-methods-parameters.html View 1 2 1 chunk +9 lines, -9 lines 0 comments Download
M LayoutTests/svg/text/svgtextcontentelement-methods-parameters-expected.txt View 1 2 1 chunk +9 lines, -9 lines 0 comments Download
M LayoutTests/webaudio/audionode-expected.txt View 1 1 chunk +3 lines, -3 lines 0 comments Download
M Source/bindings/scripts/deprecated_code_generator_v8.pm View 1 2 14 chunks +19 lines, -4 lines 0 comments Download
M Source/bindings/tests/results/V8Float64Array.cpp View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M Source/bindings/tests/results/V8TestActiveDOMObject.cpp View 1 2 3 chunks +3 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestCustomAccessors.cpp View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M Source/bindings/tests/results/V8TestEventConstructor.cpp View 2 chunks +2 lines, -1 line 0 comments Download
M Source/bindings/tests/results/V8TestEventTarget.cpp View 1 2 3 chunks +3 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestExtendedEvent.cpp View 2 chunks +2 lines, -1 line 0 comments Download
M Source/bindings/tests/results/V8TestInterface.cpp View 1 2 4 chunks +4 lines, -3 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterfaceImplementedAs.cpp View 1 2 3 chunks +3 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestMediaQueryListListener.cpp View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M Source/bindings/tests/results/V8TestNamedConstructor.cpp View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M Source/bindings/tests/results/V8TestObject.cpp View 1 2 70 chunks +70 lines, -69 lines 0 comments Download
M Source/bindings/tests/results/V8TestOverloadedConstructors.cpp View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M Source/bindings/tests/results/V8TestTypedefs.cpp View 1 2 8 chunks +8 lines, -7 lines 0 comments Download
M Source/bindings/v8/ExceptionMessages.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M Source/bindings/v8/ExceptionMessages.cpp View 1 2 2 chunks +10 lines, -0 lines 0 comments Download
M Source/bindings/v8/V8ThrowException.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Mike West
Hi Marja, This CL migrates "Not enough arguments." exception messages over to the new `ExceptionMessages::xxx` ...
7 years, 3 months ago (2013-09-17 13:08:28 UTC) #1
Mike West
Mind taking another look at this, Marja? Should be less full of "FAIL ..." test ...
7 years, 3 months ago (2013-09-18 10:16:07 UTC) #2
marja
https://codereview.chromium.org/24203002/diff/5001/LayoutTests/fast/canvas/drawImage-with-valid-image.html File LayoutTests/fast/canvas/drawImage-with-valid-image.html (right): https://codereview.chromium.org/24203002/diff/5001/LayoutTests/fast/canvas/drawImage-with-valid-image.html#newcode156 LayoutTests/fast/canvas/drawImage-with-valid-image.html:156: </html> What's this? https://codereview.chromium.org/24203002/diff/5001/Source/bindings/scripts/deprecated_code_generator_v8.pm File Source/bindings/scripts/deprecated_code_generator_v8.pm (right): https://codereview.chromium.org/24203002/diff/5001/Source/bindings/scripts/deprecated_code_generator_v8.pm#newcode2096 Source/bindings/scripts/deprecated_code_generator_v8.pm:2096: ...
7 years, 3 months ago (2013-09-18 10:24:07 UTC) #3
Mike West
https://codereview.chromium.org/24203002/diff/5001/LayoutTests/fast/canvas/drawImage-with-valid-image.html File LayoutTests/fast/canvas/drawImage-with-valid-image.html (right): https://codereview.chromium.org/24203002/diff/5001/LayoutTests/fast/canvas/drawImage-with-valid-image.html#newcode156 LayoutTests/fast/canvas/drawImage-with-valid-image.html:156: </html> On 2013/09/18 10:24:08, marja wrote: > What's this? ...
7 years, 3 months ago (2013-09-18 11:16:34 UTC) #4
marja
lgtm https://codereview.chromium.org/24203002/diff/5001/Source/bindings/scripts/deprecated_code_generator_v8.pm File Source/bindings/scripts/deprecated_code_generator_v8.pm (right): https://codereview.chromium.org/24203002/diff/5001/Source/bindings/scripts/deprecated_code_generator_v8.pm#newcode2096 Source/bindings/scripts/deprecated_code_generator_v8.pm:2096: $code .= " throwTypeError(ExceptionMessages::failedToExecute(\"$name\", \"$implClassName\", \"$leastNumMandatoryParams argument" . ...
7 years, 3 months ago (2013-09-18 11:23:50 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkwst@chromium.org/24203002/13001
7 years, 3 months ago (2013-09-18 11:37:43 UTC) #6
commit-bot: I haz the power
Retried try job too often on linux_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_blink_rel&number=5185
7 years, 3 months ago (2013-09-18 13:16:04 UTC) #7
Mike West
On 2013/09/18 13:16:04, I haz the power (commit-bot) wrote: > Retried try job too often ...
7 years, 3 months ago (2013-09-18 13:20:35 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkwst@chromium.org/24203002/28001
7 years, 3 months ago (2013-09-18 13:30:41 UTC) #9
commit-bot: I haz the power
7 years, 3 months ago (2013-09-18 14:54:51 UTC) #10
Message was sent while issue was closed.
Change committed as 157966

Powered by Google App Engine
This is Rietveld 408576698