| 1 |
// Copyright 2009 the Sputnik authors. All rights reserved. |
| 2 |
// This code is governed by the BSD license found in the LICENSE file. |
| 3 |
|
| 4 |
/*--- |
| 5 |
info: | |
| 6 |
When Date is called as part of a new expression it is |
| 7 |
a constructor: it initializes the newly created object |
| 8 |
esid: sec-date-year-month-date-hours-minutes-seconds-ms |
| 9 |
es5id: 15.9.3.1_A1_T6 |
| 10 |
description: 7 arguments, (year, month, date, hours, minutes, seconds, ms) |
| 11 |
---*/ |
| 12 |
|
| 13 |
if (typeof new Date(1899, 11, 31, 23, 59, 59, 999) !== "object") { |
| 14 |
$ERROR("#1.1: typeof new Date(1899, 11, 31, 23, 59, 59, 999) should be 'object'"); |
| 15 |
} |
| 16 |
|
| 17 |
if (new Date(1899, 11, 31, 23, 59, 59, 999) === undefined) { |
| 18 |
$ERROR("#1.2: new Date(1899, 11, 31, 23, 59, 59, 999) should not be undefined"); |
| 19 |
} |
| 20 |
|
| 21 |
var x13 = new Date(1899, 11, 31, 23, 59, 59, 999); |
| 22 |
if (typeof x13 !== "object") { |
| 23 |
$ERROR("#1.3: typeof new Date(1899, 11, 31, 23, 59, 59, 999) should be 'object'"); |
| 24 |
} |
| 25 |
|
| 26 |
var x14 = new Date(1899, 11, 31, 23, 59, 59, 999); |
| 27 |
if (x14 === undefined) { |
| 28 |
$ERROR("#1.4: new Date(1899, 11, 31, 23, 59, 59, 999) should not be undefined"); |
| 29 |
} |
| 30 |
|
| 31 |
if (typeof new Date(1899, 12, 1, 0, 0, 0, 0) !== "object") { |
| 32 |
$ERROR("#2.1: typeof new Date(1899, 12, 1, 0, 0, 0, 0) should be 'object'"); |
| 33 |
} |
| 34 |
|
| 35 |
if (new Date(1899, 12, 1, 0, 0, 0, 0) === undefined) { |
| 36 |
$ERROR("#2.2: new Date(1899, 12, 1, 0, 0, 0, 0) should not be undefined"); |
| 37 |
} |
| 38 |
|
| 39 |
var x23 = new Date(1899, 12, 1, 0, 0, 0, 0); |
| 40 |
if (typeof x23 !== "object") { |
| 41 |
$ERROR("#2.3: typeof new Date(1899, 12, 1, 0, 0, 0, 0) should be 'object'"); |
| 42 |
} |
| 43 |
|
| 44 |
var x24 = new Date(1899, 12, 1, 0, 0, 0, 0); |
| 45 |
if (x24 === undefined) { |
| 46 |
$ERROR("#2.4: new Date(1899, 12, 1, 0, 0, 0, 0) should not be undefined"); |
| 47 |
} |
| 48 |
|
| 49 |
if (typeof new Date(1900, 0, 1, 0, 0, 0, 0) !== "object") { |
| 50 |
$ERROR("#3.1: typeof new Date(1900, 0, 1, 0, 0, 0, 0) should be 'object'"); |
| 51 |
} |
| 52 |
|
| 53 |
if (new Date(1900, 0, 1, 0, 0, 0, 0) === undefined) { |
| 54 |
$ERROR("#3.2: new Date(1900, 0, 1, 0, 0, 0, 0) should not be undefined"); |
| 55 |
} |
| 56 |
|
| 57 |
var x33 = new Date(1900, 0, 1, 0, 0, 0, 0); |
| 58 |
if (typeof x33 !== "object") { |
| 59 |
$ERROR("#3.3: typeof new Date(1900, 0, 1, 0, 0, 0, 0) should be 'object'"); |
| 60 |
} |
| 61 |
|
| 62 |
var x34 = new Date(1900, 0, 1, 0, 0, 0, 0); |
| 63 |
if (x34 === undefined) { |
| 64 |
$ERROR("#3.4: new Date(1900, 0, 1, 0, 0, 0, 0) should not be undefined"); |
| 65 |
} |
| 66 |
|
| 67 |
if (typeof new Date(1969, 11, 31, 23, 59, 59, 999) !== "object") { |
| 68 |
$ERROR("#4.1: typeof new Date(1969, 11, 31, 23, 59, 59, 999) should be 'object'"); |
| 69 |
} |
| 70 |
|
| 71 |
if (new Date(1969, 11, 31, 23, 59, 59, 999) === undefined) { |
| 72 |
$ERROR("#4.2: new Date(1969, 11, 31, 23, 59, 59, 999) should not be undefined"); |
| 73 |
} |
| 74 |
|
| 75 |
var x43 = new Date(1969, 11, 31, 23, 59, 59, 999); |
| 76 |
if (typeof x43 !== "object") { |
| 77 |
$ERROR("#4.3: typeof new Date(1969, 11, 31, 23, 59, 59, 999) should be 'object'"); |
| 78 |
} |
| 79 |
|
| 80 |
var x44 = new Date(1969, 11, 31, 23, 59, 59, 999); |
| 81 |
if (x44 === undefined) { |
| 82 |
$ERROR("#4.4: new Date(1969, 11, 31, 23, 59, 59, 999) should not be undefined"); |
| 83 |
} |
| 84 |
|
| 85 |
if (typeof new Date(1969, 12, 1, 0, 0, 0, 0) !== "object") { |
| 86 |
$ERROR("#5.1: typeof new Date(1969, 12, 1, 0, 0, 0, 0) should be 'object'"); |
| 87 |
} |
| 88 |
|
| 89 |
if (new Date(1969, 12, 1, 0, 0, 0, 0) === undefined) { |
| 90 |
$ERROR("#5.2: new Date(1969, 12, 1, 0, 0, 0, 0) should not be undefined"); |
| 91 |
} |
| 92 |
|
| 93 |
var x53 = new Date(1969, 12, 1, 0, 0, 0, 0); |
| 94 |
if (typeof x53 !== "object") { |
| 95 |
$ERROR("#5.3: typeof new Date(1969, 12, 1, 0, 0, 0, 0) should be 'object'"); |
| 96 |
} |
| 97 |
|
| 98 |
var x54 = new Date(1969, 12, 1, 0, 0, 0, 0); |
| 99 |
if (x54 === undefined) { |
| 100 |
$ERROR("#5.4: new Date(1969, 12, 1, 0, 0, 0, 0) should not be undefined"); |
| 101 |
} |
| 102 |
|
| 103 |
if (typeof new Date(1970, 0, 1, 0, 0, 0, 0) !== "object") { |
| 104 |
$ERROR("#6.1: typeof new Date(1970, 0, 1, 0, 0, 0, 0) should be 'object'"); |
| 105 |
} |
| 106 |
|
| 107 |
if (new Date(1970, 0, 1, 0, 0, 0, 0) === undefined) { |
| 108 |
$ERROR("#6.2: new Date(1970, 0, 1, 0, 0, 0, 0) should not be undefined"); |
| 109 |
} |
| 110 |
|
| 111 |
var x63 = new Date(1970, 0, 1, 0, 0, 0, 0); |
| 112 |
if (typeof x63 !== "object") { |
| 113 |
$ERROR("#6.3: typeof new Date(1970, 0, 1, 0, 0, 0, 0) should be 'object'"); |
| 114 |
} |
| 115 |
|
| 116 |
var x64 = new Date(1970, 0, 1, 0, 0, 0, 0); |
| 117 |
if (x64 === undefined) { |
| 118 |
$ERROR("#6.4: new Date(1970, 0, 1, 0, 0, 0, 0) should not be undefined"); |
| 119 |
} |
| 120 |
|
| 121 |
if (typeof new Date(1999, 11, 31, 23, 59, 59, 999) !== "object") { |
| 122 |
$ERROR("#7.1: typeof new Date(1999, 11, 31, 23, 59, 59, 999) should be 'object'"); |
| 123 |
} |
| 124 |
|
| 125 |
if (new Date(1999, 11, 31, 23, 59, 59, 999) === undefined) { |
| 126 |
$ERROR("#7.2: new Date(1999, 11, 31, 23, 59, 59, 999) should not be undefined"); |
| 127 |
} |
| 128 |
|
| 129 |
var x73 = new Date(1999, 11, 31, 23, 59, 59, 999); |
| 130 |
if (typeof x73 !== "object") { |
| 131 |
$ERROR("#7.3: typeof new Date(1999, 11, 31, 23, 59, 59, 999) should be 'object'"); |
| 132 |
} |
| 133 |
|
| 134 |
var x74 = new Date(1999, 11, 31, 23, 59, 59, 999); |
| 135 |
if (x74 === undefined) { |
| 136 |
$ERROR("#7.4: new Date(1999, 11, 31, 23, 59, 59, 999) should not be undefined"); |
| 137 |
} |
| 138 |
|
| 139 |
if (typeof new Date(1999, 12, 1, 0, 0, 0, 0) !== "object") { |
| 140 |
$ERROR("#8.1: typeof new Date(1999, 12, 1, 0, 0, 0, 0) should be 'object'"); |
| 141 |
} |
| 142 |
|
| 143 |
if (new Date(1999, 12, 1, 0, 0, 0, 0) === undefined) { |
| 144 |
$ERROR("#8.2: new Date(1999, 12, 1, 0, 0, 0, 0) should not be undefined"); |
| 145 |
} |
| 146 |
|
| 147 |
var x83 = new Date(1999, 12, 1, 0, 0, 0, 0); |
| 148 |
if (typeof x83 !== "object") { |
| 149 |
$ERROR("#8.3: typeof new Date(1999, 12, 1, 0, 0, 0, 0) should be 'object'"); |
| 150 |
} |
| 151 |
|
| 152 |
var x84 = new Date(1999, 12, 1, 0, 0, 0, 0); |
| 153 |
if (x84 === undefined) { |
| 154 |
$ERROR("#8.4: new Date(1999, 12, 1, 0, 0, 0, 0) should not be undefined"); |
| 155 |
} |
| 156 |
|
| 157 |
if (typeof new Date(2000, 0, 1, 0, 0, 0, 0) !== "object") { |
| 158 |
$ERROR("#9.1: typeof new Date(2000, 0, 1, 0, 0, 0, 0) should be 'object'"); |
| 159 |
} |
| 160 |
|
| 161 |
if (new Date(2000, 0, 1, 0, 0, 0, 0) === undefined) { |
| 162 |
$ERROR("#9.2: new Date(2000, 0, 1, 0, 0, 0, 0) should not be undefined"); |
| 163 |
} |
| 164 |
|
| 165 |
var x93 = new Date(2000, 0, 1, 0, 0, 0, 0); |
| 166 |
if (typeof x93 !== "object") { |
| 167 |
$ERROR("#9.3: typeof new Date(2000, 0, 1, 0, 0, 0, 0) should be 'object'"); |
| 168 |
} |
| 169 |
|
| 170 |
var x94 = new Date(2000, 0, 1, 0, 0, 0, 0); |
| 171 |
if (x94 === undefined) { |
| 172 |
$ERROR("#9.4: new Date(2000, 0, 1, 0, 0, 0, 0) should not be undefined"); |
| 173 |
} |
| 174 |
|
| 175 |
if (typeof new Date(2099, 11, 31, 23, 59, 59, 999) !== "object") { |
| 176 |
$ERROR("#10.1: typeof new Date(2099, 11, 31, 23, 59, 59, 999) should be 'object'"); |
| 177 |
} |
| 178 |
|
| 179 |
if (new Date(2099, 11, 31, 23, 59, 59, 999) === undefined) { |
| 180 |
$ERROR("#10.2: new Date(2099, 11, 31, 23, 59, 59, 999) should not be undefined"); |
| 181 |
} |
| 182 |
|
| 183 |
var x103 = new Date(2099, 11, 31, 23, 59, 59, 999); |
| 184 |
if (typeof x103 !== "object") { |
| 185 |
$ERROR("#10.3: typeof new Date(2099, 11, 31, 23, 59, 59, 999) should be 'object'"); |
| 186 |
} |
| 187 |
|
| 188 |
var x104 = new Date(2099, 11, 31, 23, 59, 59, 999); |
| 189 |
if (x104 === undefined) { |
| 190 |
$ERROR("#10.4: new Date(2099, 11, 31, 23, 59, 59, 999) should not be undefined"); |
| 191 |
} |
| 192 |
|
| 193 |
if (typeof new Date(2099, 12, 1, 0, 0, 0, 0) !== "object") { |
| 194 |
$ERROR("#11.1: typeof new Date(2099, 12, 1, 0, 0, 0, 0) should be 'object'"); |
| 195 |
} |
| 196 |
|
| 197 |
if (new Date(2099, 12, 1, 0, 0, 0, 0) === undefined) { |
| 198 |
$ERROR("#11.2: new Date(2099, 12, 1, 0, 0, 0, 0) should not be undefined"); |
| 199 |
} |
| 200 |
|
| 201 |
var x113 = new Date(2099, 12, 1, 0, 0, 0, 0); |
| 202 |
if (typeof x113 !== "object") { |
| 203 |
$ERROR("#11.3: typeof new Date(2099, 12, 1, 0, 0, 0, 0) should be 'object'"); |
| 204 |
} |
| 205 |
|
| 206 |
var x114 = new Date(2099, 12, 1, 0, 0, 0, 0); |
| 207 |
if (x114 === undefined) { |
| 208 |
$ERROR("#11.4: new Date(2099, 12, 1, 0, 0, 0, 0) should not be undefined"); |
| 209 |
} |
| 210 |
|
| 211 |
if (typeof new Date(2100, 0, 1, 0, 0, 0, 0) !== "object") { |
| 212 |
$ERROR("#12.1: typeof new Date(2100, 0, 1, 0, 0, 0, 0) should be 'object'"); |
| 213 |
} |
| 214 |
|
| 215 |
if (new Date(2100, 0, 1, 0, 0, 0, 0) === undefined) { |
| 216 |
$ERROR("#12.2: new Date(2100, 0, 1, 0, 0, 0, 0) should not be undefined"); |
| 217 |
} |
| 218 |
|
| 219 |
var x123 = new Date(2100, 0, 1, 0, 0, 0, 0); |
| 220 |
if (typeof x123 !== "object") { |
| 221 |
$ERROR("#12.3: typeof new Date(2100, 0, 1, 0, 0, 0, 0) should be 'object'"); |
| 222 |
} |
| 223 |
|
| 224 |
var x124 = new Date(2100, 0, 1, 0, 0, 0, 0); |
| 225 |
if (x124 === undefined) { |
| 226 |
$ERROR("#12.4: new Date(2100, 0, 1, 0, 0, 0, 0) should not be undefined"); |
| 227 |
} |