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

Issue 614733002: Array.prototype.{reduce, reduceRight}: Wrong order of operations when determining initial value. (Closed)

Created:
6 years, 2 months ago by Diego Pino
Modified:
6 years, 2 months ago
CC:
v8-dev, aperez, vjaquez, gemont_igalia.com, Michael Starzinger
Project:
v8
Visibility:
Public.

Description

Array.prototype.{reduce, reduceRight}: Wrong order of operations when determining initial value. BUG=v8:3534 LOG=

Patch Set 1 #

Total comments: 6

Patch Set 2 : Remove unnneded check (length is zero and 'current' is not defined). Fixed tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -6 lines) Patch
M src/array.js View 1 2 chunks +4 lines, -6 lines 0 comments Download
M test/mjsunit/array-reduce.js View 1 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (3 generated)
Diego Pino
Please take a look when you have time :)
6 years, 2 months ago (2014-10-03 19:09:21 UTC) #2
Diego Pino
6 years, 2 months ago (2014-10-03 19:09:54 UTC) #3
wingo
https://codereview.chromium.org/614733002/diff/1/src/array.js File src/array.js (right): https://codereview.chromium.org/614733002/diff/1/src/array.js#newcode1399 src/array.js:1399: } I think the test should be %_ArgumentsLength() < ...
6 years, 2 months ago (2014-10-07 11:04:32 UTC) #4
arv (Not doing code reviews)
https://codereview.chromium.org/614733002/diff/1/src/array.js File src/array.js (right): https://codereview.chromium.org/614733002/diff/1/src/array.js#newcode1399 src/array.js:1399: } On 2014/10/07 11:04:31, wingo wrote: > I think ...
6 years, 2 months ago (2014-10-07 14:16:03 UTC) #6
Diego Pino
https://codereview.chromium.org/614733002/diff/1/src/array.js File src/array.js (right): https://codereview.chromium.org/614733002/diff/1/src/array.js#newcode1399 src/array.js:1399: } On 2014/10/07 11:04:31, wingo wrote: > I think ...
6 years, 2 months ago (2014-10-09 10:18:57 UTC) #7
Diego Pino
Uploaded a new patch fixing last issues. Please, take a look. Thanks :)
6 years, 2 months ago (2014-10-09 10:21:14 UTC) #8
wingo
lgtm
6 years, 2 months ago (2014-10-13 12:37:02 UTC) #9
Diego Pino
6 years, 2 months ago (2014-10-16 16:37:27 UTC) #11
Diego Pino
Sven Panne: "git cl owner" suggested you as an owner. The issue is already reviewed ...
6 years, 2 months ago (2014-10-16 16:40:32 UTC) #12
Sven Panne
lgtm
6 years, 2 months ago (2014-10-21 08:54:11 UTC) #13
wingo (chromium)
i'll land
6 years, 2 months ago (2014-10-21 10:02:46 UTC) #14
wingo (chromium)
6 years, 2 months ago (2014-10-22 13:15:24 UTC) #15
Message was sent while issue was closed.
Committed patchset #2 manually as 24807 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698