Index: src/js/json.js |
diff --git a/src/js/json.js b/src/js/json.js |
index e72c1f68cb654af872fc5865c0fd5a077f5bba88..73d7802be964164adb7611e5bc3b130ba7bfac5f 100644 |
--- a/src/js/json.js |
+++ b/src/js/json.js |
@@ -234,6 +234,9 @@ function JSONStringify(value, replacer, space) { |
} else { |
gap = ""; |
} |
+ if (!IS_CALLABLE(replacer) && !property_list && !gap && !IS_PROXY(value)) { |
+ return %BasicJSONStringify(value); |
+ } |
return JSONSerialize('', {'': value}, replacer, new InternalArray(), "", gap); |
} |