Fix primitive value handling in Date constructor
JerryScript-DCO-1.0-Signed-off-by: Kristof Kosztyo kkosztyo.u-szeged@partner.samsung.com
This commit is contained in:
@@ -57,3 +57,9 @@ assert (d.valueOf() == 1420070400000);
|
||||
|
||||
d = new Date(2015,0,1,0,0,0,0);
|
||||
assert (d.valueOf() == 1420070400000);
|
||||
|
||||
d = new Date(8.64e+15);
|
||||
assert (d.valueOf() == 8.64e+15);
|
||||
|
||||
d = new Date(8.64e+15 + 1);
|
||||
assert (isNaN(d.valueOf()));
|
||||
|
||||
Reference in New Issue
Block a user