blob: 10a20483a2f7b60412aa5e48d0c70298576c7447 [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 != "Error: Out of memory")
throw "FAILED";