blob: 414a0294d85f3920c98c11a4ec0936b375850832 [file] [log] [blame]
try {
const s1 = (-1).toLocaleString().padEnd(2**31-1, 'aa');
'a'.toLocaleLowerCase(s1);
} catch (e) { exception = e }
if (exception != "RangeError: Out of memory")
throw "FAILED";
try {
const s1 = (-1).toLocaleString().padEnd(2**31-1, 'aa');
'a'.toLocaleUpperCase(s1);
} catch (e) { exception2 = e }
if (exception2 != "RangeError: Out of memory")
throw "FAILED";
try {
const s1 = (-1).toLocaleString().padEnd(2**31-1, 'aa');
'a'.localeCompare('b', s1);
} catch (e) { exception3 = e }
if (exception3 != "RangeError: Out of memory")
throw "FAILED";