Index: src/array.js |
diff --git a/src/array.js b/src/array.js |
index d4b1583a4d654f61a7c4ea093fe5fe5e0d1405e1..7e7ad2f88758e632c74e085009a6b888105e291b 100644 |
--- a/src/array.js |
+++ b/src/array.js |
@@ -15,6 +15,7 @@ |
var GlobalArray = global.Array; |
var InternalArray = utils.InternalArray; |
var InternalPackedArray = utils.InternalPackedArray; |
+var MathMin; |
var ObjectHasOwnProperty; |
var ObjectIsFrozen; |
var ObjectIsSealed; |
@@ -23,6 +24,7 @@ |
utils.Import(function(from) { |
Delete = from.Delete; |
+ MathMin = from.MathMin; |
ObjectHasOwnProperty = from.ObjectHasOwnProperty; |
ObjectIsFrozen = from.ObjectIsFrozen; |
ObjectIsSealed = from.ObjectIsSealed; |
@@ -262,7 +264,7 @@ |
// Move data to new array. |
var new_array = new InternalArray( |
// Clamp array length to 2^32-1 to avoid early RangeError. |
- MIN_SIMPLE(len - del_count + num_additional_args, 0xffffffff)); |
+ MathMin(len - del_count + num_additional_args, 0xffffffff)); |
var big_indices; |
var indices = %GetArrayKeys(array, len); |
if (IS_NUMBER(indices)) { |