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

Issue 376623004: [es6] implement Array.prototype.copyWithin() (Closed)

Created:
6 years, 5 months ago by caitp (gmail)
Modified:
5 years, 8 months ago
CC:
v8-dev
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[es6] implement Array.prototype.copyWithin() https://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.prototype.copywithin BUG=v8:4039 R=adamk@chromium.org LOG=N Committed: https://crrev.com/6d00703e5efacd5677b44067d46d687b6f4877ca Cr-Commit-Position: refs/heads/master@{#27983}

Patch Set 1 #

Total comments: 24

Patch Set 2 : rebase #

Total comments: 1

Patch Set 3 : adjustments, test improvements #

Patch Set 4 : the number is implicitly ToObject()'d anyways #

Patch Set 5 : fix expectations #

Total comments: 4

Patch Set 6 : Re-add CHECK_OBJECT_COERCIBLE, nits, extra large object test #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+393 lines, -0 lines) Patch
M src/harmony-array.js View 1 2 3 4 5 6 3 chunks +55 lines, -0 lines 0 comments Download
A test/mjsunit/harmony/array-copywithin.js View 1 2 3 4 5 1 chunk +338 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (5 generated)
caitp (gmail)
Since we've got Array.from and Array.of CLs open, why not one for Array.prototype.copyWithin as well? ...
6 years, 5 months ago (2014-07-07 19:09:20 UTC) #1
caitp (gmail)
PTAL --- it would be nice to get some comments on this one =)
6 years, 3 months ago (2014-09-05 19:28:37 UTC) #4
adamk
Looking good, all non-test comments are stylistic. The test looks very thorough too, just a ...
5 years, 8 months ago (2015-04-17 22:34:17 UTC) #6
caitp (gmail)
https://codereview.chromium.org/376623004/diff/1/test/mjsunit/harmony/array-copywithin.js File test/mjsunit/harmony/array-copywithin.js (right): https://codereview.chromium.org/376623004/diff/1/test/mjsunit/harmony/array-copywithin.js#newcode41 test/mjsunit/harmony/array-copywithin.js:41: // assertThrows('Array.prototype.copyWithin.call("hello world", 0, 3);', TypeError); On 2015/04/17 22:34:17, ...
5 years, 8 months ago (2015-04-17 22:36:50 UTC) #7
caitp (gmail)
On 2015/04/17 22:36:50, caitp wrote: > https://codereview.chromium.org/376623004/diff/1/test/mjsunit/harmony/array-copywithin.js > File test/mjsunit/harmony/array-copywithin.js (right): > > https://codereview.chromium.org/376623004/diff/1/test/mjsunit/harmony/array-copywithin.js#newcode41 > ...
5 years, 8 months ago (2015-04-18 03:01:44 UTC) #8
caitp (gmail)
https://codereview.chromium.org/376623004/diff/1/src/harmony-array.js File src/harmony-array.js (right): https://codereview.chromium.org/376623004/diff/1/src/harmony-array.js#newcode14 src/harmony-array.js:14: function ArrayCopyWithin(target, start /* [ , end ] */ ...
5 years, 8 months ago (2015-04-18 04:50:30 UTC) #9
adamk
Looking good, just a few nits and one test request. https://codereview.chromium.org/376623004/diff/20001/src/harmony-array.js File src/harmony-array.js (right): https://codereview.chromium.org/376623004/diff/20001/src/harmony-array.js#newcode15 ...
5 years, 8 months ago (2015-04-20 17:26:14 UTC) #10
caitp (gmail)
https://codereview.chromium.org/376623004/diff/80001/src/harmony-array.js File src/harmony-array.js (right): https://codereview.chromium.org/376623004/diff/80001/src/harmony-array.js#newcode16 src/harmony-array.js:16: var length = ToLength(array.length); On 2015/04/20 17:26:14, adamk wrote: ...
5 years, 8 months ago (2015-04-20 17:53:54 UTC) #11
adamk
lgtm Thanks for the ping on this one, happy to see harmony-array complete (modulo typed ...
5 years, 8 months ago (2015-04-20 17:57:48 UTC) #12
caitp (gmail)
On 2015/04/20 17:57:48, adamk wrote: > lgtm > > Thanks for the ping on this ...
5 years, 8 months ago (2015-04-20 18:08:11 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/376623004/120001
5 years, 8 months ago (2015-04-21 18:39:56 UTC) #16
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 8 months ago (2015-04-21 19:05:54 UTC) #17
Michael Achenbach
A revert of this CL (patchset #7 id:120001) has been created in https://codereview.chromium.org/1084183004/ by machenbach@chromium.org. ...
5 years, 8 months ago (2015-04-21 21:11:33 UTC) #18
commit-bot: I haz the power
5 years, 8 months ago (2015-04-22 04:10:47 UTC) #19
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/6d00703e5efacd5677b44067d46d687b6f4877ca
Cr-Commit-Position: refs/heads/master@{#27983}

Powered by Google App Engine
This is Rietveld 408576698