blob: eb33a322795df8f8fb11fa23aa3c89abc1bc8cdc [file] [log] [blame]
//@ skip if $hostOS == "windows" or $memoryLimited
// FIXME: unskip this test when https://bugs.webkit.org/show_bug.cgi?id=179298 is fixed.
var exception;
try {
var str0 = new String('@hBg');
var collat3 = new Intl.Collator();
str10 = str0.padEnd(0x7FFFFFFC, 1);
Object.defineProperty(collat3, Symbol.toStringTag, { value: str10 });
collat3.toLocaleString();
} catch (e) {
exception = e;
}
if (exception != "RangeError: Out of memory")
throw "FAILED";