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