Primitive value of Date.prototype should be NaN

JerryScript-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com
This commit is contained in:
László Langó
2015-07-10 11:27:50 +02:00
committed by Lango
parent 122e5c47c9
commit 9c559216b7
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -29,6 +29,8 @@ catch (e)
assert (e.message === "foo");
}
assert (isNaN(Date.prototype.valueOf.call(Date.prototype)));
d = Date("abcd");
assert (isNaN(d.valueOf()));