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

Unified Diff: src/array.js

Issue 6603015: More cases of CallFunction that doesn't work correctly. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge/build-ia32
Patch Set: Created 9 years, 10 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/array.js
diff --git a/src/array.js b/src/array.js
index 97ce10dd85e0870e0f644cb7fef4dc475ceb5732..6ed1476080d49c5d1e552d63011c34964e798ea8 100644
--- a/src/array.js
+++ b/src/array.js
@@ -1138,7 +1138,7 @@ function ArrayReduce(callback, current) {
for (; i < length; i++) {
var element = this[i];
if (!IS_UNDEFINED(element) || i in this) {
- current = %_CallFunction(null, current, element, i, this, callback);
+ current = callback.call(null, current, element, i, this);
}
}
return current;
@@ -1164,7 +1164,7 @@ function ArrayReduceRight(callback, current) {
for (; i >= 0; i--) {
var element = this[i];
if (!IS_UNDEFINED(element) || i in this) {
- current = %_CallFunction(null, current, element, i, this, callback);
+ current = callback.call(null, current, element, i, this);
}
}
return current;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698