Index: src/json.js |
diff --git a/src/json.js b/src/json.js |
index 2e6bbbbce2d2bf6217a5ea61700d61f8eb3a5635..d62bb1839ed4695165d9785e878c398cd17a2b36 100644 |
--- a/src/json.js |
+++ b/src/json.js |
@@ -4,7 +4,7 @@ |
var $jsonSerializeAdapter; |
-(function(global, shared, exports) { |
+(function(global, utils) { |
"use strict"; |
@@ -14,7 +14,15 @@ var $jsonSerializeAdapter; |
// Imports |
var GlobalJSON = global.JSON; |
-var InternalArray = shared.InternalArray; |
+var InternalArray = utils.InternalArray; |
+ |
+var MathMax; |
+var MathMin; |
+ |
+utils.Import(function(from) { |
+ MathMax = from.MathMax; |
+ MathMin = from.MathMin; |
+}); |
// ------------------------------------------------------------------- |
@@ -183,7 +191,7 @@ function JSONStringify(value, replacer, space) { |
} |
var gap; |
if (IS_NUMBER(space)) { |
- space = $max(0, $min($toInteger(space), 10)); |
+ space = MathMax(0, MathMin($toInteger(space), 10)); |
gap = %_SubString(" ", 0, space); |
} else if (IS_STRING(space)) { |
if (space.length > 10) { |