Index: src/runtime.js |
diff --git a/src/runtime.js b/src/runtime.js |
index 39939b16027f9447967becf4e3b374aafdb8fd21..a49a3bdfa991279df019c6d944cb6d3e2c08bf82 100644 |
--- a/src/runtime.js |
+++ b/src/runtime.js |
@@ -33,7 +33,6 @@ var harmony_tolength = false; |
var GlobalArray = global.Array; |
var GlobalBoolean = global.Boolean; |
var GlobalString = global.String; |
-var GlobalNumber = global.Number; |
var isConcatSpreadableSymbol = |
utils.ImportNow("is_concat_spreadable_symbol"); |
@@ -302,8 +301,7 @@ function ToInteger(x) { |
function ToLength(arg) { |
arg = ToInteger(arg); |
if (arg < 0) return 0; |
- return arg < GlobalNumber.MAX_SAFE_INTEGER ? arg |
- : GlobalNumber.MAX_SAFE_INTEGER; |
+ return arg < kMaxSafeInteger ? arg : kMaxSafeInteger; |
} |