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