Index: src/array.js |
diff --git a/src/array.js b/src/array.js |
index 71f86c80f3a90518181c2bc0941ebeb7988a899d..3ec350fb6c65e9588509add8fda7604f251920be 100644 |
--- a/src/array.js |
+++ b/src/array.js |
@@ -17,7 +17,7 @@ var $innerArrayLastIndexOf; |
var $innerArrayReverse; |
var $innerArraySort; |
-(function(global, shared, exports) { |
+(function(global, utils) { |
"use strict"; |
@@ -27,8 +27,14 @@ var $innerArraySort; |
// Imports |
var GlobalArray = global.Array; |
-var InternalArray = exports.InternalArray; |
-var InternalPackedArray = exports.InternalPackedArray; |
+var InternalArray = utils.InternalArray; |
+var InternalPackedArray = utils.InternalPackedArray; |
+ |
+var MathMin; |
+ |
+utils.Import(function(from) { |
+ MathMin = from.MathMin; |
+}); |
// ------------------------------------------------------------------- |
@@ -262,7 +268,7 @@ function SparseMove(array, start_i, del_count, len, num_additional_args) { |
// Move data to new array. |
var new_array = new InternalArray( |
// Clamp array length to 2^32-1 to avoid early RangeError. |
- $min(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)) { |