mirror of https://github.com/tc39/test262.git
Fixed comments
This commit is contained in:
parent
6376e4d833
commit
679d02a6ed
|
@ -5,14 +5,14 @@
|
|||
es5id: 15.9.5.43-0-13
|
||||
description: >
|
||||
Date.prototype.toISOString - RangeError is thrown when value of
|
||||
date is Date(1970, 0, 100000001, 0, 0, 0, 1), the time zone is
|
||||
UTC(0)
|
||||
date is outside the valid range of time.
|
||||
---*/
|
||||
|
||||
var timeZoneMinutes = new Date().getTimezoneOffset() * (-1);
|
||||
var date, dateStr;
|
||||
|
||||
assert.throws(RangeError, function() {
|
||||
date = new Date(1970, 0, 100000001, 0, 0 + timeZoneMinutes + 60, 0, 1);
|
||||
// As specified in ES5 15.9.1.14, time > 8.64e15 is not in the
|
||||
// valid range.
|
||||
date = new Date(8.64e15 + 1);
|
||||
dateStr = date.toISOString();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue