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

Issue 568703002: IDL: Values for dictionaries should be a object, null or undefined (Closed)

Created:
6 years, 3 months ago by bashi
Modified:
6 years, 3 months ago
Reviewers:
haraken, Jens Widell
CC:
blink-reviews, blink-reviews-bindings_chromium.org, arv+blink, abarth-chromium
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

IDL: Values for dictionaries should be a object, null or undefined To follow the spec[1]. We should throw an type error when a V8 value for IDL dictionary is neither an object, null, nor undefined. The current implementation returns an impl instance with default values. [1] http://heycam.github.io/webidl/#es-dictionary BUG=321462 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181891

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Remove assertion and added a guard #

Total comments: 2

Patch Set 4 : #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -21 lines) Patch
M LayoutTests/fast/dom/idl-dictionary-unittest.html View 1 chunk +5 lines, -0 lines 0 comments Download
M LayoutTests/fast/dom/idl-dictionary-unittest-expected.txt View 1 chunk +4 lines, -0 lines 0 comments Download
M Source/bindings/scripts/v8_methods.py View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M Source/bindings/templates/dictionary_v8.cpp View 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M Source/bindings/templates/methods.cpp View 1 2 3 3 chunks +12 lines, -5 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestDictionary.cpp View 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestInterfaceConstructor.cpp View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestInterfaceConstructor2.cpp View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestObject.cpp View 1 2 3 5 chunks +13 lines, -8 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
bashi
Haraken-san, Could you take a look?
6 years, 3 months ago (2014-09-12 09:00:48 UTC) #2
Jens Widell
https://codereview.chromium.org/568703002/diff/40001/Source/bindings/templates/methods.cpp File Source/bindings/templates/methods.cpp (right): https://codereview.chromium.org/568703002/diff/40001/Source/bindings/templates/methods.cpp#newcode200 Source/bindings/templates/methods.cpp:200: {% elif argument.is_dictionary or argument.idl_type == 'Dictionary' %} It ...
6 years, 3 months ago (2014-09-12 09:13:53 UTC) #4
bashi
Thank you for review! https://codereview.chromium.org/568703002/diff/40001/Source/bindings/templates/methods.cpp File Source/bindings/templates/methods.cpp (right): https://codereview.chromium.org/568703002/diff/40001/Source/bindings/templates/methods.cpp#newcode200 Source/bindings/templates/methods.cpp:200: {% elif argument.is_dictionary or argument.idl_type ...
6 years, 3 months ago (2014-09-12 10:00:49 UTC) #5
haraken
LGTM
6 years, 3 months ago (2014-09-12 10:07:39 UTC) #6
Jens Widell
LGTM
6 years, 3 months ago (2014-09-12 10:22:31 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/568703002/80001
6 years, 3 months ago (2014-09-12 11:16:27 UTC) #9
commit-bot: I haz the power
6 years, 3 months ago (2014-09-12 11:22:06 UTC) #10
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as 181891

Powered by Google App Engine
This is Rietveld 408576698