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

Issue 2509713002: binding: Makes Dictionary throw an exception (constructor). (Closed)

Created:
4 years, 1 month ago by Yuki
Modified:
4 years, 1 month ago
Reviewers:
haraken, bashi
CC:
chromium-reviews, shans, rjwright, blink-reviews-animation_chromium.org, jbroman+watch_chromium.org, blink-reviews-bindings_chromium.org, darktears, blink-reviews, kinuko+watch, Eric Willigers
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

binding: Makes Dictionary throw an exception (constructor). As part of an effort to make Dictionary handle an exception correctly, this CL makes Dictionary's ctor take an ExceptionState and rethrow an exception if any when converting an ECMAScript value to an IDL dictionary value. BUG=666661 Committed: https://crrev.com/1f6b9a3ebd8b058a5f07ae5393bbd7469ad030bf Cr-Commit-Position: refs/heads/master@{#433529}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Addressed review comments. #

Patch Set 3 : Updated text expectations. #

Total comments: 8

Patch Set 4 : Addressed review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -102 lines) Patch
M third_party/WebKit/LayoutTests/fast/dom/idl-dictionary-unittest-expected.txt View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ArrayValue.cpp View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/Dictionary.h View 1 3 chunks +38 lines, -23 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/Dictionary.cpp View 1 2 3 7 chunks +47 lines, -46 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/DictionaryIterator.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/modules/v8/serialization/V8ScriptValueSerializerForModulesTest.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/scripts/v8_types.py View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/ArrayBufferOrArrayBufferViewOrDictionary.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestDictionary.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceConstructor.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceConstructor2.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp View 1 4 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/animation/EffectInputTest.cpp View 5 chunks +14 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/core/animation/KeyframeEffectTest.cpp View 2 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebCryptoNormalize.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 35 (21 generated)
Yuki
Could you guys review this CL? This is a follow-up CL of http://crrev.com/2496533002 .
4 years, 1 month ago (2016-11-16 15:03:26 UTC) #4
bashi
Change it self looks good. Could you fix unit test failures? https://codereview.chromium.org/2509713002/diff/1/third_party/WebKit/Source/bindings/core/v8/ArrayValue.cpp File third_party/WebKit/Source/bindings/core/v8/ArrayValue.cpp (right): ...
4 years, 1 month ago (2016-11-16 17:01:54 UTC) #7
haraken
https://codereview.chromium.org/2509713002/diff/1/third_party/WebKit/Source/bindings/core/v8/Dictionary.cpp File third_party/WebKit/Source/bindings/core/v8/Dictionary.cpp (right): https://codereview.chromium.org/2509713002/diff/1/third_party/WebKit/Source/bindings/core/v8/Dictionary.cpp#newcode47 third_party/WebKit/Source/bindings/core/v8/Dictionary.cpp:47: v8::TryCatch tryCatch(isolate); I'd prefer checking IsObject and throw TypeError ...
4 years, 1 month ago (2016-11-16 17:28:57 UTC) #8
Yuki
https://codereview.chromium.org/2509713002/diff/1/third_party/WebKit/Source/bindings/core/v8/Dictionary.h File third_party/WebKit/Source/bindings/core/v8/Dictionary.h (right): https://codereview.chromium.org/2509713002/diff/1/third_party/WebKit/Source/bindings/core/v8/Dictionary.h#newcode88 third_party/WebKit/Source/bindings/core/v8/Dictionary.h:88: v8::Local<v8::Object> m_dictObj; // an Object (same as m_value) or ...
4 years, 1 month ago (2016-11-17 07:38:53 UTC) #9
haraken
On 2016/11/17 07:38:53, Yuki wrote: > https://codereview.chromium.org/2509713002/diff/1/third_party/WebKit/Source/bindings/core/v8/Dictionary.h > File third_party/WebKit/Source/bindings/core/v8/Dictionary.h (right): > > https://codereview.chromium.org/2509713002/diff/1/third_party/WebKit/Source/bindings/core/v8/Dictionary.h#newcode88 > ...
4 years, 1 month ago (2016-11-17 08:16:45 UTC) #10
Yuki
On 2016/11/17 08:16:45, haraken wrote: > On 2016/11/17 07:38:53, Yuki wrote: > > > https://codereview.chromium.org/2509713002/diff/1/third_party/WebKit/Source/bindings/core/v8/Dictionary.h ...
4 years, 1 month ago (2016-11-17 08:24:01 UTC) #11
haraken
On 2016/11/17 08:24:01, Yuki wrote: > On 2016/11/17 08:16:45, haraken wrote: > > On 2016/11/17 ...
4 years, 1 month ago (2016-11-17 15:02:24 UTC) #12
Yuki
Could you guys take another look? https://codereview.chromium.org/2509713002/diff/1/third_party/WebKit/Source/bindings/core/v8/ArrayValue.cpp File third_party/WebKit/Source/bindings/core/v8/ArrayValue.cpp (right): https://codereview.chromium.org/2509713002/diff/1/third_party/WebKit/Source/bindings/core/v8/ArrayValue.cpp#newcode66 third_party/WebKit/Source/bindings/core/v8/ArrayValue.cpp:66: // TODO(bashi,yukishiino): Should ...
4 years, 1 month ago (2016-11-18 13:37:53 UTC) #22
bashi
still lgtm w/ nits https://codereview.chromium.org/2509713002/diff/40001/third_party/WebKit/Source/bindings/core/v8/Dictionary.cpp File third_party/WebKit/Source/bindings/core/v8/Dictionary.cpp (right): https://codereview.chromium.org/2509713002/diff/40001/third_party/WebKit/Source/bindings/core/v8/Dictionary.cpp#newcode40 third_party/WebKit/Source/bindings/core/v8/Dictionary.cpp:40: // https://heycam.github.io/webidl/#es-dictionary I'm not sure ...
4 years, 1 month ago (2016-11-18 15:03:55 UTC) #25
haraken
LGTM
4 years, 1 month ago (2016-11-18 15:52:41 UTC) #26
Yuki
https://codereview.chromium.org/2509713002/diff/40001/third_party/WebKit/Source/bindings/core/v8/Dictionary.cpp File third_party/WebKit/Source/bindings/core/v8/Dictionary.cpp (right): https://codereview.chromium.org/2509713002/diff/40001/third_party/WebKit/Source/bindings/core/v8/Dictionary.cpp#newcode40 third_party/WebKit/Source/bindings/core/v8/Dictionary.cpp:40: // https://heycam.github.io/webidl/#es-dictionary On 2016/11/18 15:03:55, bashi1 wrote: > I'm ...
4 years, 1 month ago (2016-11-21 12:40:27 UTC) #27
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/2509713002/60001
4 years, 1 month ago (2016-11-21 12:41:00 UTC) #30
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-11-21 14:13:53 UTC) #33
commit-bot: I haz the power
4 years, 1 month ago (2016-11-21 14:16:17 UTC) #35
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/1f6b9a3ebd8b058a5f07ae5393bbd7469ad030bf
Cr-Commit-Position: refs/heads/master@{#433529}

Powered by Google App Engine
This is Rietveld 408576698