blob: 0f81fe11e05ef89e227caf4b4ab87981e9ac5086 [file] [log] [blame]
// 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-date.prototype.toutcstring
description: Invalid Dates are rendered as "Invalid Date"
info: |
Date.prototype.toUTCString ( )
...
3. If tv is NaN, return "Invalid Date".
...
---*/
assert.sameValue(new Date(NaN).toUTCString(), "Invalid Date");