Index: src/json.js |
diff --git a/src/json.js b/src/json.js |
index 9ab1a31e59c1b0b25226160402b7ef9bfd804454..e94d3c8e3e907f081891f2517b91de7de13b3f89 100644 |
--- a/src/json.js |
+++ b/src/json.js |
@@ -193,10 +193,10 @@ function JSONStringify(value, replacer, space) { |
var gap; |
if (IS_NUMBER(space)) { |
space = MathMax(0, MathMin(ToInteger(space), 10)); |
- gap = SubString(" ", 0, space); |
+ gap = %_SubString(" ", 0, space); |
} else if (IS_STRING(space)) { |
if (space.length > 10) { |
- gap = SubString(space, 0, 10); |
+ gap = %_SubString(space, 0, 10); |
} else { |
gap = space; |
} |