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:
committed by
GitHub
parent
aa89d38df3
commit
e227634b45
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user