blob: 4076361a5e4c4e445d00709b966e3695babfb116 [file] [log] [blame]
//@ if $memoryLimited then skip else runDefault end
try {
const s = "123".padStart(1073741823);
JSON.stringify(s);
} catch(e) {
if (e != "RangeError: Out of memory")
throw e;
}