blob: 43a61451ad3459a7378747e0954884bd3d2a5012 [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);
collat3[Symbol.toStringTag] = str10;
collat3.toLocaleString();
} catch (e) {
exception = e;
}
if (exception != "Error: Out of memory")
throw "FAILED";