Index: src/json.js |
diff --git a/src/json.js b/src/json.js |
index e2b7dc816bb1ff1e10e3e6db588b24642a644212..90ffa25131d6a2b79d9dbfd0f77fc5c100e6d318 100644 |
--- a/src/json.js |
+++ b/src/json.js |
@@ -178,7 +178,7 @@ function JSONStringify(value, replacer, space) { |
} |
var gap; |
if (IS_NUMBER(space)) { |
- space = MathMax(0, MathMin(ToInteger(space), 10)); |
+ space = $max(0, $min(ToInteger(space), 10)); |
gap = %_SubString(" ", 0, space); |
} else if (IS_STRING(space)) { |
if (space.length > 10) { |