blob: 00e25552f46c33963d8a16ad3dccfab3c2e06d4d [file] [log] [blame]
//@ if $memoryLimited then skip else runDefault end
var exception;
try {
const str = "a".padStart(0x80000000 - 1);
new Date(str);
} catch (e) {
exception = e;
}
if (exception != "RangeError: Out of memory")
throw "FAILED";