mirror of https://github.com/tc39/test262.git
Test toString() behavior of invalid Dates
This commit is contained in:
parent
1f065b5b71
commit
b3115654c1
|
@ -0,0 +1,15 @@
|
||||||
|
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
esid: sec-todatestring
|
||||||
|
description: Invalid Dates are rendered as "Invalid Date"
|
||||||
|
info: >
|
||||||
|
ToDateString ( tv )
|
||||||
|
|
||||||
|
...
|
||||||
|
2. If tv is NaN, return "Invalid Date".
|
||||||
|
...
|
||||||
|
---*/
|
||||||
|
|
||||||
|
assert.sameValue(new Date(NaN).toString(), "Invalid Date");
|
Loading…
Reference in New Issue