Fix Date(Number.POSITIVE_INFINITY) assertion fail in the Date constructor

JerryScript-DCO-1.0-Signed-off-by: Szilard Ledan szledan.u-szeged@partner.samsung.com
This commit is contained in:
Szilard Ledan
2015-07-16 15:31:07 +02:00
committed by Peter Gal
parent 6038173e76
commit bbfddea032
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -44,6 +44,7 @@ catch (e)
}
assert (new Date (NaN).toTimeString () == "Invalid Date");
assert (Date (Number.POSITIVE_INFINITY).toString () === "Invalid Date");
assert (new Date ("2015-02-13").toTimeString () == "00:00:00.000");
assert (new Date ("2015-07-08T11:29:05.023").toTimeString () == "11:29:05.023");