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

Issue 19969004: Update toNativeArray() / toRefPtrNativeArray() do not match Web IDL specification (Closed)

Created:
7 years, 5 months ago by do-not-use
Modified:
7 years, 5 months ago
CC:
blink-reviews, Nils Barth (inactive), kojih, jsbell+bindings_chromium.org, eae+blinkwatch, abarth-chromium, marja+watch_chromium.org, dglazkov+blink, adamk+blink_chromium.org, Nate Chapin, lgombos
Visibility:
Public.

Description

Update toNativeArray() / toRefPtrNativeArray() do not match Web IDL specification Update toNativeArray() / toRefPtrNativeArray() do not match the latest Web IDL specification: - http://dev.w3.org/2006/webapi/WebIDL/#es-array - http://dev.w3.org/2006/webapi/WebIDL/#es-sequence In particular, we no longer generate an empty Vector if the JavaScript value is not an array but can still be converted to an IDL sequence. If the JavaScript value is an object (Other than a Date or a RegExp), we now call [[Get]] on it with a property name of "length" and call ToUint32() on the result. If this succeeds, we then retrieve each item by calling [[Get]] with a property name corresponding to the index. This essentially means that IDL operations taking an array or a sequence in argument will now be more permissive and convert non v8::Array by converting them to sequences. BUG=263758 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=154940

Patch Set 1 #

Total comments: 25

Patch Set 2 : Take feedback into consideration #

Total comments: 1

Patch Set 3 : Fix nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+195 lines, -30 lines) Patch
A LayoutTests/fast/canvas/canvas-lineDash-input-sequence.html View 1 2 1 chunk +78 lines, -0 lines 0 comments Download
A LayoutTests/fast/canvas/canvas-lineDash-input-sequence-expected.txt View 1 1 chunk +69 lines, -0 lines 0 comments Download
M Source/bindings/scripts/deprecated_code_generator_v8.pm View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/tests/results/V8TestObject.cpp View 7 chunks +7 lines, -7 lines 0 comments Download
M Source/bindings/tests/results/V8TestTypedefs.cpp View 4 chunks +4 lines, -4 lines 0 comments Download
M Source/bindings/v8/V8Binding.h View 1 2 4 chunks +36 lines, -18 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
do-not-use
7 years, 5 months ago (2013-07-24 15:01:59 UTC) #1
haraken
The code change looks good. We might want to have a thorough test that covers ...
7 years, 5 months ago (2013-07-24 15:59:29 UTC) #2
arv (Not doing code reviews)
https://codereview.chromium.org/19969004/diff/1/LayoutTests/fast/canvas/script-tests/canvas-lineDash-input-sequence.js File LayoutTests/fast/canvas/script-tests/canvas-lineDash-input-sequence.js (right): https://codereview.chromium.org/19969004/diff/1/LayoutTests/fast/canvas/script-tests/canvas-lineDash-input-sequence.js#newcode15 LayoutTests/fast/canvas/script-tests/canvas-lineDash-input-sequence.js:15: array = new Object(); array = {length: arrayValues.length}; https://codereview.chromium.org/19969004/diff/1/LayoutTests/fast/canvas/script-tests/canvas-lineDash-input-sequence.js#newcode18 ...
7 years, 5 months ago (2013-07-24 16:38:12 UTC) #3
do-not-use
https://codereview.chromium.org/19969004/diff/1/LayoutTests/fast/canvas/script-tests/canvas-lineDash-input-sequence.js File LayoutTests/fast/canvas/script-tests/canvas-lineDash-input-sequence.js (right): https://codereview.chromium.org/19969004/diff/1/LayoutTests/fast/canvas/script-tests/canvas-lineDash-input-sequence.js#newcode15 LayoutTests/fast/canvas/script-tests/canvas-lineDash-input-sequence.js:15: array = new Object(); On 2013/07/24 16:38:13, arv wrote: ...
7 years, 5 months ago (2013-07-25 08:01:26 UTC) #4
do-not-use
Could you please take another look?
7 years, 5 months ago (2013-07-25 08:46:13 UTC) #5
haraken
LGTM
7 years, 5 months ago (2013-07-25 08:50:29 UTC) #6
arv (Not doing code reviews)
LGTM with nits https://codereview.chromium.org/19969004/diff/1/Source/bindings/v8/V8Binding.h File Source/bindings/v8/V8Binding.h (right): https://codereview.chromium.org/19969004/diff/1/Source/bindings/v8/V8Binding.h#newcode485 Source/bindings/v8/V8Binding.h:485: if (!value->IsObject() || value->IsDate() || value->IsRegExp()) ...
7 years, 5 months ago (2013-07-25 18:24:41 UTC) #7
do-not-use
On 2013/07/25 18:24:41, arv wrote: > LGTM with nits > > https://codereview.chromium.org/19969004/diff/1/Source/bindings/v8/V8Binding.h > File Source/bindings/v8/V8Binding.h ...
7 years, 5 months ago (2013-07-25 18:56:55 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@sisa.samsung.com/19969004/15001
7 years, 5 months ago (2013-07-25 19:08:53 UTC) #9
commit-bot: I haz the power
Retried try job too often on linux_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_layout_rel&number=18437
7 years, 5 months ago (2013-07-25 21:23:49 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@sisa.samsung.com/19969004/15001
7 years, 5 months ago (2013-07-25 21:55:45 UTC) #11
commit-bot: I haz the power
7 years, 5 months ago (2013-07-25 22:17:09 UTC) #12
Message was sent while issue was closed.
Change committed as 154940

Powered by Google App Engine
This is Rietveld 408576698