mirror of https://github.com/tc39/test262.git
10 lines
125 B
JavaScript
10 lines
125 B
JavaScript
|
function test() {
|
||
|
|
||
|
return new Date(NaN) + "" === "Invalid Date";
|
||
|
|
||
|
}
|
||
|
|
||
|
if (!test())
|
||
|
throw new Error("Test failed");
|
||
|
|