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

Unified Diff: src/array.js

Issue 11175007: Always invoke the default Array.sort functions from builtin functions, part 2. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 2 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 | test/mjsunit/regress/regress-builtin-array-op.js » ('j') | 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 ab68c5843c2c554b5c30a23dc0f5eff85581bd63..250c30c32b04d0ea96763010cee4699185ce0490 100644
--- a/src/array.js
+++ b/src/array.js
@@ -62,7 +62,7 @@ function GetSortedArrayKeys(array, intervals) {
}
}
}
- ArraySort.call(keys, function(a, b) { return a - b; });
+ %_CallFunction(keys, function(a, b) { return a - b; }, ArraySort);
return keys;
}
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-builtin-array-op.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698