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:
@@ -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()));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user