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

Issue 2519403002: binding: Lets Dictionary::getPropertyNames, etc. rethrow an exception. (Closed)

Created:
4 years, 1 month ago by Yuki
Modified:
4 years ago
Reviewers:
haraken, peria, bashi
CC:
chromium-reviews, shans, rjwright, rouslan+payments_chromium.org, blink-reviews-animation_chromium.org, tommyw+watchlist_chromium.org, blink-reviews-bindings_chromium.org, darktears, blink-reviews, sebsg+paymentswatch_chromium.org, mcasas+watch+mediastream_chromium.org, Eric Willigers
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

binding: Lets Dictionary::getPropertyNames, etc. rethrow an exception. Lets Dictionary::getPropertyNames and getOwnPropertiesAsStringHashMap rethrow an exception up to the call sites. BUG=666661 Committed: https://crrev.com/541073fb340487f9e29f0eefa10ce4f7548f49c4 Cr-Commit-Position: refs/heads/master@{#434516}

Patch Set 1 #

Patch Set 2 : Fixed DictionaryTest. #

Total comments: 28

Patch Set 3 : Addressed review comments. #

Patch Set 4 : Synced. #

Patch Set 5 : Synced. #

Patch Set 6 : Addressed review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+139 lines, -104 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/Dictionary.h View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/Dictionary.cpp View 1 2 3 4 5 1 chunk +57 lines, -42 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8StringResource.h View 1 2 3 2 chunks +17 lines, -18 lines 0 comments Download
M third_party/WebKit/Source/core/animation/EffectInput.cpp View 1 2 3 4 5 2 chunks +8 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/testing/DictionaryTest.cpp View 1 2 3 4 5 2 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/Headers.cpp View 1 2 3 4 5 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp View 1 2 3 4 5 3 chunks +16 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentRequest.cpp View 1 2 3 4 5 3 chunks +14 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.h View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp View 1 2 3 4 5 4 chunks +14 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.idl View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 43 (25 generated)
Yuki
Could you guys review this CL?
4 years ago (2016-11-24 07:06:12 UTC) #10
peria
https://codereview.chromium.org/2519403002/diff/20001/third_party/WebKit/Source/bindings/core/v8/V8StringResource.h File third_party/WebKit/Source/bindings/core/v8/V8StringResource.h (right): https://codereview.chromium.org/2519403002/diff/20001/third_party/WebKit/Source/bindings/core/v8/V8StringResource.h#newcode208 third_party/WebKit/Source/bindings/core/v8/V8StringResource.h:208: if (prepareFast()) Can't we make this like prepare(isoalte, state)? ...
4 years ago (2016-11-24 07:21:23 UTC) #12
haraken
https://codereview.chromium.org/2519403002/diff/20001/third_party/WebKit/Source/bindings/core/v8/Dictionary.cpp File third_party/WebKit/Source/bindings/core/v8/Dictionary.cpp (right): https://codereview.chromium.org/2519403002/diff/20001/third_party/WebKit/Source/bindings/core/v8/Dictionary.cpp#newcode121 third_party/WebKit/Source/bindings/core/v8/Dictionary.cpp:121: // lets an exception be thrown. It's the caller's ...
4 years ago (2016-11-24 07:22:31 UTC) #13
bashi
https://codereview.chromium.org/2519403002/diff/20001/third_party/WebKit/Source/bindings/core/v8/V8StringResource.h File third_party/WebKit/Source/bindings/core/v8/V8StringResource.h (right): https://codereview.chromium.org/2519403002/diff/20001/third_party/WebKit/Source/bindings/core/v8/V8StringResource.h#newcode196 third_party/WebKit/Source/bindings/core/v8/V8StringResource.h:196: // TODO(bashi): Pass an exceptionState to this function and ...
4 years ago (2016-11-24 07:25:53 UTC) #14
haraken
A more meta question is: How hard would it be to replace Dictionaries with IDL ...
4 years ago (2016-11-24 07:35:55 UTC) #15
Yuki
Could you guys take another look? On 2016/11/24 07:35:55, haraken wrote: > A more meta ...
4 years ago (2016-11-24 10:19:33 UTC) #18
peria
lgtm from my side
4 years ago (2016-11-24 10:39:02 UTC) #19
bashi
lgtm on my side too. > In order to make V8FooDictionary conformant to the IDL ...
4 years ago (2016-11-24 11:54:42 UTC) #20
haraken
LGTM % the first comment below. https://codereview.chromium.org/2519403002/diff/20001/third_party/WebKit/Source/bindings/core/v8/Dictionary.h File third_party/WebKit/Source/bindings/core/v8/Dictionary.h (right): https://codereview.chromium.org/2519403002/diff/20001/third_party/WebKit/Source/bindings/core/v8/Dictionary.h#newcode85 third_party/WebKit/Source/bindings/core/v8/Dictionary.h:85: ExceptionState&) const; On ...
4 years ago (2016-11-24 12:39:13 UTC) #23
Yuki
https://codereview.chromium.org/2519403002/diff/20001/third_party/WebKit/Source/bindings/core/v8/Dictionary.h File third_party/WebKit/Source/bindings/core/v8/Dictionary.h (right): https://codereview.chromium.org/2519403002/diff/20001/third_party/WebKit/Source/bindings/core/v8/Dictionary.h#newcode85 third_party/WebKit/Source/bindings/core/v8/Dictionary.h:85: ExceptionState&) const; On 2016/11/24 12:39:12, haraken wrote: > On ...
4 years ago (2016-11-25 08:31:04 UTC) #26
haraken
https://codereview.chromium.org/2519403002/diff/20001/third_party/WebKit/Source/bindings/core/v8/Dictionary.h File third_party/WebKit/Source/bindings/core/v8/Dictionary.h (right): https://codereview.chromium.org/2519403002/diff/20001/third_party/WebKit/Source/bindings/core/v8/Dictionary.h#newcode85 third_party/WebKit/Source/bindings/core/v8/Dictionary.h:85: ExceptionState&) const; On 2016/11/25 08:31:04, Yuki wrote: > On ...
4 years ago (2016-11-25 09:14:51 UTC) #27
Yuki
https://codereview.chromium.org/2519403002/diff/20001/third_party/WebKit/Source/bindings/core/v8/Dictionary.h File third_party/WebKit/Source/bindings/core/v8/Dictionary.h (right): https://codereview.chromium.org/2519403002/diff/20001/third_party/WebKit/Source/bindings/core/v8/Dictionary.h#newcode85 third_party/WebKit/Source/bindings/core/v8/Dictionary.h:85: ExceptionState&) const; On 2016/11/25 09:14:51, haraken wrote: > On ...
4 years ago (2016-11-25 09:58:54 UTC) #30
haraken
https://codereview.chromium.org/2519403002/diff/20001/third_party/WebKit/Source/bindings/core/v8/Dictionary.h File third_party/WebKit/Source/bindings/core/v8/Dictionary.h (right): https://codereview.chromium.org/2519403002/diff/20001/third_party/WebKit/Source/bindings/core/v8/Dictionary.h#newcode85 third_party/WebKit/Source/bindings/core/v8/Dictionary.h:85: ExceptionState&) const; On 2016/11/25 09:58:54, Yuki wrote: > On ...
4 years ago (2016-11-25 10:14:37 UTC) #31
Yuki
Could you take another look? Updated the function signatures. https://codereview.chromium.org/2519403002/diff/20001/third_party/WebKit/Source/bindings/core/v8/Dictionary.h File third_party/WebKit/Source/bindings/core/v8/Dictionary.h (right): https://codereview.chromium.org/2519403002/diff/20001/third_party/WebKit/Source/bindings/core/v8/Dictionary.h#newcode85 third_party/WebKit/Source/bindings/core/v8/Dictionary.h:85: ...
4 years ago (2016-11-25 14:50:26 UTC) #34
haraken
LGTM
4 years ago (2016-11-25 14:55:17 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2519403002/100001
4 years ago (2016-11-25 14:56:09 UTC) #39
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years ago (2016-11-25 16:05:18 UTC) #41
commit-bot: I haz the power
4 years ago (2016-11-25 16:07:42 UTC) #43
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/541073fb340487f9e29f0eefa10ce4f7548f49c4
Cr-Commit-Position: refs/heads/master@{#434516}

Powered by Google App Engine
This is Rietveld 408576698