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