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