Index: src/js/v8natives.js |
diff --git a/src/js/v8natives.js b/src/js/v8natives.js |
index f67a8b5bf41307f4936fa3ee28500999bf35c8b7..29f9c45efa854360c259e620da1209d0a511e372 100644 |
--- a/src/js/v8natives.js |
+++ b/src/js/v8natives.js |
@@ -9,7 +9,6 @@ |
// ---------------------------------------------------------------------------- |
// Imports |
-var GlobalNumber = global.Number; |
var GlobalObject = global.Object; |
var iteratorSymbol = utils.ImportNow("iterator_symbol"); |
var NaN = %GetRootNaN(); |
@@ -21,15 +20,6 @@ var ObjectToString = utils.ImportNow("object_to_string"); |
// Set up global object. |
var attributes = DONT_ENUM | DONT_DELETE | READ_ONLY; |
-utils.InstallConstants(global, [ |
- // ES6 18.1.1 |
- "Infinity", INFINITY, |
- // ES6 18.1.2 |
- "NaN", NaN, |
- // ES6 18.1.3 |
- "undefined", UNDEFINED, |
-]); |
- |
// ---------------------------------------------------------------------------- |
// Object |
@@ -97,29 +87,6 @@ utils.InstallFunctions(GlobalObject.prototype, DONT_ENUM, [ |
// ---------------------------------------------------------------------------- |
-// Number |
- |
-utils.InstallConstants(GlobalNumber, [ |
- // ECMA-262 section 15.7.3.1. |
- "MAX_VALUE", 1.7976931348623157e+308, |
- // ECMA-262 section 15.7.3.2. |
- "MIN_VALUE", 5e-324, |
- // ECMA-262 section 15.7.3.3. |
- "NaN", NaN, |
- // ECMA-262 section 15.7.3.4. |
- "NEGATIVE_INFINITY", -INFINITY, |
- // ECMA-262 section 15.7.3.5. |
- "POSITIVE_INFINITY", INFINITY, |
- |
- // --- Harmony constants (no spec refs until settled.) |
- |
- "MAX_SAFE_INTEGER", 9007199254740991, |
- "MIN_SAFE_INTEGER", -9007199254740991, |
- "EPSILON", 2.220446049250313e-16, |
-]); |
- |
- |
-// ---------------------------------------------------------------------------- |
// Iterator related spec functions. |
// ES6 7.4.1 GetIterator(obj, method) |