Array.prototype.reduceRight() by lvidacs · Pull Request #105 · jerryscript-project/jerryscript · GitHub
Skip to content

Array.prototype.reduceRight() - #105

Closed
lvidacs wants to merge 1 commit into
jerryscript-project:masterfrom
lvidacs:array_prototype_reduceright
Closed

lvidacs wants to merge 1 commit into
jerryscript-project:masterfrom
lvidacs:array_prototype_reduceright

Conversation

@lvidacs

@lvidacs lvidacs commented May 27, 2015

Copy link
Copy Markdown
Contributor

JerryScript-DCO-1.0-Signed-off-by: Laszlo Vidacs lvidacs.u-szeged@partner.samsung.com

@galpeter galpeter added the ecma builtins Related to ECMA built-in routines label May 27, 2015
@galpeter galpeter added this to the ECMA builtins milestone May 27, 2015

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should be an assert(false) after the reduceRight call.

@ILyoan ILyoan mentioned this pull request May 27, 2015
25 tasks done
@lvidacs
lvidacs force-pushed the array_prototype_reduceright branch from 503d889 to 3a1653e Compare May 29, 2015 13:39
@lvidacs

lvidacs commented May 29, 2015

Copy link
Copy Markdown
Contributor Author

Updated based on review comments (also from reduce).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I see the accumulator and num_p variables are only used in the following else block, could we move them there?

@lvidacs
lvidacs force-pushed the array_prototype_reduceright branch from fc85657 to 0960607 Compare June 1, 2015 15:02
JerryScript-DCO-1.0-Signed-off-by: Laszlo Vidacs lvidacs.u-szeged@partner.samsung.com
@lvidacs
lvidacs force-pushed the array_prototype_reduceright branch from 0960607 to 3e58541 Compare June 1, 2015 15:16
@lvidacs

lvidacs commented Jun 1, 2015

Copy link
Copy Markdown
Contributor Author

The patch is updated.

@galpeter

galpeter commented Jun 2, 2015

Copy link
Copy Markdown
Contributor

AFAIK: looks good to me

@egavrin

egavrin commented Jun 2, 2015

Copy link
Copy Markdown
Contributor

make push

@egavrin egavrin self-assigned this Jun 2, 2015
@galpeter

galpeter commented Jun 3, 2015

Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ecma builtins Related to ECMA built-in routines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants