Make Date.UTC to conform to the latest ES11 spec (#4250)

Date.UTC should work with only one argument too.

JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác csaba.osztrogonac@h-lab.eu
This commit is contained in:
Csaba Osztrogonác
2020-10-01 16:34:09 +02:00
committed by GitHub
parent aa89d38df3
commit e227634b45
4 changed files with 23 additions and 5 deletions
-3
View File
@@ -20,9 +20,6 @@ assert (isNaN(d));
d = Date.UTC({});
assert (isNaN(d));
d = Date.UTC(2015);
assert (isNaN(d));
d = Date.UTC(2000 + 15, 0);
assert (d == 1420070400000);