blob: 6dcc92cc280e787387f3d836e1aaf57e7a253b6a [file] [log] [blame]
try {
const s1 = (-1).toLocaleString().padEnd(2**31-1, 'aa');
'a'.toLocaleLowerCase(s1);
} catch (e) { exception = e }
if (exception != "Error: Out of memory")
throw "FAILED";
try {
const s1 = (-1).toLocaleString().padEnd(2**31-1, 'aa');
'a'.toLocaleUpperCase(s1);
} catch (e) { exception2 = e }
if (exception2 != "Error: 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 != "Error: Out of memory")
throw "FAILED";