blob: f347336d10fcf1317b555b48db10f254a4687a5e [file] [log] [blame]
const s1 = (-1).toLocaleString().padEnd(2**31-1, 'aa');
try {
s1.lastIndexOf();
} catch (e) {
exception = e;
}
if (exception != "RangeError: Out of memory")
throw "FAILED";