blob: 91f1173ac93ec205a072c38fb398b0f532571ece [file] [log] [blame]
//@ runDefault
try {
const s = (10).toLocaleString().padEnd(2**31-1, 'aa');
RegExp([s]);
} catch (e) {
exception = e;
}
if (exception != "RangeError: Out of memory")
throw "FAILED";