The following script causes a crash:
d = new Date; d.setMonth(); d.setMonth(2);
It doesn't crash on Linux.