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

Unified Diff: src/array.js

Issue 1384443002: [es6] Fix missing bits for full @@toPrimitive support. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove useless cctest. Created 5 years, 3 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/arraybuffer.js » ('j') | test/cctest/compiler/test-run-jscalls.cc » ('J')
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 b2b038dae3a16335d093e831b2ce3ea8ebf691fb..7e7ad2f88758e632c74e085009a6b888105e291b 100644
--- a/src/array.js
+++ b/src/array.js
@@ -20,8 +20,6 @@ var ObjectHasOwnProperty;
var ObjectIsFrozen;
var ObjectIsSealed;
var ObjectToString;
-var ToNumber;
-var ToString;
var unscopablesSymbol = utils.ImportNow("unscopables_symbol");
utils.Import(function(from) {
@@ -31,8 +29,6 @@ utils.Import(function(from) {
ObjectIsFrozen = from.ObjectIsFrozen;
ObjectIsSealed = from.ObjectIsSealed;
ObjectToString = from.ObjectToString;
- ToNumber = from.ToNumber;
- ToString = from.ToString;
});
// -------------------------------------------------------------------
@@ -892,8 +888,8 @@ function InnerArraySort(array, length, comparefn) {
if (%_IsSmi(x) && %_IsSmi(y)) {
return %SmiLexicographicCompare(x, y);
}
- x = ToString(x);
- y = ToString(y);
+ x = TO_STRING(x);
+ y = TO_STRING(y);
if (x == y) return 0;
else return x < y ? -1 : 1;
};
« no previous file with comments | « no previous file | src/arraybuffer.js » ('j') | test/cctest/compiler/test-run-jscalls.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698