test262/implementation-contributed/javascriptcore/es6/miscellaneous_Invalid_Date.js

10 lines
125 B
JavaScript

function test() {
return new Date(NaN) + "" === "Invalid Date";
}
if (!test())
throw new Error("Test failed");