blob: dac505b75adce108d85f25ae009bea746e1a9878 [file] [log] [blame]
//@ if $memoryLimited then skip else runDefault end
try {
const s = "a".padStart(0x80000000 - 1);
JSON.stringify(s);
} catch(e) {
if (e != "RangeError: Out of memory")
throw e;
}