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

Unified Diff: src/v8natives.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
Index: src/v8natives.js
diff --git a/src/v8natives.js b/src/v8natives.js
index 168f97b91add2c5ac868bffb6842b56104f850ad..a0c6b5b67d3fca6ab7310f76f2af067030fcff3a 100644
--- a/src/v8natives.js
+++ b/src/v8natives.js
@@ -23,7 +23,6 @@ var ProxyDerivedHasOwnTrap;
var ProxyDerivedKeysTrap;
var StringIndexOf;
var ToBoolean = utils.ImportNow("ToBoolean");
-var ToNumber = utils.ImportNow("ToNumber");
var toStringTagSymbol = utils.ImportNow("to_string_tag_symbol");
utils.Import(function(from) {
@@ -43,14 +42,14 @@ utils.ImportFromExperimental(function(from) {
// ECMA 262 - 15.1.4
function GlobalIsNaN(number) {
- number = TO_NUMBER_INLINE(number);
+ number = TO_NUMBER(number);
return NUMBER_IS_NAN(number);
}
// ECMA 262 - 15.1.5
function GlobalIsFinite(number) {
- number = TO_NUMBER_INLINE(number);
+ number = TO_NUMBER(number);
return NUMBER_IS_FINITE(number);
}
@@ -1423,7 +1422,7 @@ utils.InstallFunctions(GlobalBoolean.prototype, DONT_ENUM, [
function NumberConstructor(x) {
// TODO(bmeurer): Move this to toplevel.
"use strict";
- var value = %_ArgumentsLength() == 0 ? 0 : ToNumber(x);
+ var value = %_ArgumentsLength() == 0 ? 0 : TO_NUMBER(x);
if (%_IsConstructCall()) {
%_SetValueOf(this, value);
} else {

Powered by Google App Engine
This is Rietveld 408576698