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

Issue 856303002: Don't take iterable path in ArrayFrom if items[@@iterator] is null (Closed)

Created:
5 years, 11 months ago by caitp (gmail)
Modified:
5 years, 10 months ago
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Don't take iterable path in ArrayFrom if items[@@iterator] is null BUG=v8:3833 LOG=N R=arv@chromium.org Committed: https://crrev.com/1f2e5973ebe2f4f9d4acca44129109e20b2109bc Cr-Commit-Position: refs/heads/master@{#26314}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Refactor ArrayFrom (no for-of...), clarify GetMethod #

Patch Set 3 : Add test for @@iterator retrieval and invocation #

Patch Set 4 : oops ^^ #

Total comments: 3

Patch Set 5 : cleanup test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -21 lines) Patch
M src/harmony-array.js View 1 2 chunks +26 lines, -9 lines 0 comments Download
M src/v8natives.js View 1 3 1 chunk +9 lines, -0 lines 0 comments Download
M test/mjsunit/harmony/array-from.js View 1 2 3 4 2 chunks +39 lines, -12 lines 0 comments Download

Messages

Total messages: 22 (7 generated)
caitp (gmail)
PTAL, should be a trivial fix
5 years, 11 months ago (2015-01-21 07:44:35 UTC) #1
arv (Not doing code reviews)
https://codereview.chromium.org/856303002/diff/1/src/harmony-array.js File src/harmony-array.js (right): https://codereview.chromium.org/856303002/diff/1/src/harmony-array.js#newcode145 src/harmony-array.js:145: var iterable = GetMethod(items, symbolIterator); We now call items.[[Get]](symbolIterator) ...
5 years, 11 months ago (2015-01-21 15:05:18 UTC) #3
caitp (gmail)
https://codereview.chromium.org/856303002/diff/1/src/harmony-array.js File src/harmony-array.js (right): https://codereview.chromium.org/856303002/diff/1/src/harmony-array.js#newcode145 src/harmony-array.js:145: var iterable = GetMethod(items, symbolIterator); On 2015/01/21 15:05:18, arv ...
5 years, 11 months ago (2015-01-21 17:21:49 UTC) #4
arv (Not doing code reviews)
Please add a test that counts the number of Get operations so that this does ...
5 years, 11 months ago (2015-01-21 19:43:05 UTC) #5
caitp (gmail)
On 2015/01/21 19:43:05, arv wrote: > Please add a test that counts the number of ...
5 years, 11 months ago (2015-01-22 19:02:22 UTC) #6
arv (Not doing code reviews)
LGTM with nits https://codereview.chromium.org/856303002/diff/60001/test/mjsunit/harmony/array-from.js File test/mjsunit/harmony/array-from.js (right): https://codereview.chromium.org/856303002/diff/60001/test/mjsunit/harmony/array-from.js#newcode114 test/mjsunit/harmony/array-from.js:114: var arr = [1,2,3]; ws after ...
5 years, 11 months ago (2015-01-22 21:14:58 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/856303002/80001
5 years, 11 months ago (2015-01-22 21:26:00 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: v8_presubmit on tryserver.v8 (http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/149)
5 years, 11 months ago (2015-01-22 21:28:42 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/856303002/80001
5 years, 11 months ago (2015-01-22 21:38:40 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: v8_presubmit on tryserver.v8 (http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/151)
5 years, 11 months ago (2015-01-22 21:40:42 UTC) #15
caitp (gmail)
On 2015/01/22 21:40:42, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
5 years, 11 months ago (2015-01-22 21:45:57 UTC) #16
caitp (gmail)
guess it needs an lgtm from an owner, okay.
5 years, 11 months ago (2015-01-22 22:05:48 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/856303002/80001
5 years, 10 months ago (2015-01-29 02:34:49 UTC) #20
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 10 months ago (2015-01-29 02:36:11 UTC) #21
commit-bot: I haz the power
5 years, 10 months ago (2015-01-29 02:36:31 UTC) #22
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/1f2e5973ebe2f4f9d4acca44129109e20b2109bc
Cr-Commit-Position: refs/heads/master@{#26314}

Powered by Google App Engine
This is Rietveld 408576698