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

Issue 111533002: Have document.evaluate() report TypeError over incorrect resolvers. (Closed)

Created:
7 years ago by sof
Modified:
7 years ago
CC:
blink-reviews, Nils Barth (inactive), kojih, arv+blink, jsbell+bindings_chromium.org, abarth-chromium, marja+watch_chromium.org, adamk+blink_chromium.org, haraken, Nate Chapin, Inactive
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Have document.evaluate() report TypeError over incorrect resolvers. Switch from reporting TypeMismatchError to TypeError to align with other implementations (and WebIDL) when faced with resolver arguments that do not have a function type. To help format the error message about an incorrectly typed argument, introduced ExceptionMessages::incorrectArgumentType(). R= BUG=270033 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=163533

Patch Set 1 #

Total comments: 1

Patch Set 2 : The detail argument is no longer optional. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -3 lines) Patch
A LayoutTests/fast/xpath/invalid-resolver.html View 1 chunk +15 lines, -0 lines 0 comments Download
A LayoutTests/fast/xpath/invalid-resolver-expected.txt View 1 chunk +7 lines, -0 lines 0 comments Download
M Source/bindings/v8/ExceptionMessages.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M Source/bindings/v8/ExceptionMessages.cpp View 1 1 chunk +5 lines, -0 lines 0 comments Download
M Source/bindings/v8/custom/V8DocumentCustom.cpp View 2 chunks +6 lines, -3 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
sof
At your leisure, please take a look.
7 years ago (2013-12-10 11:12:32 UTC) #1
Mike West
LGTM with one note. https://codereview.chromium.org/111533002/diff/1/Source/bindings/v8/ExceptionMessages.h File Source/bindings/v8/ExceptionMessages.h (right): https://codereview.chromium.org/111533002/diff/1/Source/bindings/v8/ExceptionMessages.h#newcode47 Source/bindings/v8/ExceptionMessages.h:47: static String incorrectPropertyType(const String& property, ...
7 years ago (2013-12-10 11:20:40 UTC) #2
sof
On 2013/12/10 11:20:40, Mike West wrote: > LGTM with one note. > > https://codereview.chromium.org/111533002/diff/1/Source/bindings/v8/ExceptionMessages.h > ...
7 years ago (2013-12-10 11:42:09 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sigbjornf@opera.com/111533002/20001
7 years ago (2013-12-10 11:42:34 UTC) #4
commit-bot: I haz the power
7 years ago (2013-12-10 12:49:58 UTC) #5
Message was sent while issue was closed.
Change committed as 163533

Powered by Google App Engine
This is Rietveld 408576698