Revision: 7044 Author: [email protected] Date: Thu Mar 3 04:56:14 2011 Log: More cases of CallFunction that doesn't work correctly.
Review URL: http://codereview.chromium.org/6603015 http://code.google.com/p/v8/source/detail?r=7044 Modified: /branches/bleeding_edge/src/array.js ======================================= --- /branches/bleeding_edge/src/array.js Thu Mar 3 04:44:39 2011 +++ /branches/bleeding_edge/src/array.js Thu Mar 3 04:56:14 2011 @@ -1138,7 +1138,7 @@ 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 @@ 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; -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
