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

Unified Diff: src/bootstrapper.cc

Issue 2776433003: [builtins] Implement Array.prototype.reduceRight in the CSA (Closed)
Patch Set: Add back accidental removals Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/builtins/builtins.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/bootstrapper.cc
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
index 3dc58eb901d518e698593e019f9b896bde8a987d..81a3e86161eb5fa6b2f2fc4e63c5e8a45f868891 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -4197,6 +4197,10 @@ bool Genesis::InstallNatives(GlobalContextType context_type) {
// Install Array.prototype.reduce
InstallArrayBuiltinFunction(proto, "reduce", Builtins::kArrayReduce, 2);
+
+ // Install Array.prototype.reduceRight
+ InstallArrayBuiltinFunction(proto, "reduceRight",
+ Builtins::kArrayReduceRight, 2);
}
// Install InternalArray.prototype.concat
« no previous file with comments | « no previous file | src/builtins/builtins.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698