Minimal testcase: var s = "\0".repeat(715827897); JSON.stringify(["a", s]); Bug 1343005 optimized the JSON Quote function but didn't add any overflow checks or assertions, so when we bumped the max string length this became an issue on 32-bit :/
Bug 1518440 Comment 3 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Minimal testcase: ``` var s = "\0".repeat(715827897); JSON.stringify(["a", s]); ``` Bug 1343005 optimized the JSON Quote function but didn't add any overflow checks or assertions, so when we bumped the max string length this became an issue on 32-bit :/
Minimal testcase: ```lang=js var s = "\0".repeat(715827897); JSON.stringify(["a", s]); ``` Bug 1343005 optimized the JSON Quote function but didn't add any overflow checks or assertions, so when we bumped the max string length this became an issue on 32-bit :/