blob: 5a9a6c9b52c2f0d808115910147558469bfa3d24 [file] [log] [blame]
description(
'This test checks for a regression against <a href="https://bugs.webkit.org/show_bug.cgi?id=4781">Date.setMonth fails with big values due to overflow</a>.'
);
var d = new Date(1970, 0, 1);
d.setMonth(128);
shouldBe("d.valueOf()", "new Date(1980, 8, 1).valueOf()");