Fix issues in the Date constructor
There are some bugs in the date constructor. The following cases produce wrong Date objects: This should be invalid but it is valid:
d = new Date(8.64e+15 + 1);
The first one should be valid while the second one should be invalid:
d = new Date("275760-09-13T00:00:00.000");
d = new Date("275760-09-13T00:00:00.001");
This should be valid:
d = new Date("300-09-13T00:00:00.000");
cc: @szledan @LaszloLango
According to the standard (15.9.1.15) the date string contains strictly four year digit. However other JS engines support it so I'm going to check how hard would be support this in the Jerry as well.
The first test case is solved in #490. The support of the different date strings mentioned in the description is postponed until we have more spare time and fewer open issues.