| 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 |
The [[Prototype]] property of the newly constructed object |
| 7 |
is set to the original Date prototype object, the one that is the |
| 8 |
initial value of Date.prototype |
| 9 |
esid: sec-date-year-month-date-hours-minutes-seconds-ms |
| 10 |
es5id: 15.9.3.1_A2_T1 |
| 11 |
description: 2 arguments, (year, month) |
| 12 |
---*/ |
| 13 |
|
| 14 |
var x11 = new Date(1899, 11); |
| 15 |
if (typeof x11.constructor.prototype !== "object") { |
| 16 |
$ERROR("#1.1: typeof x11.constructor.prototype === 'object'"); |
| 17 |
} |
| 18 |
|
| 19 |
var x12 = new Date(1899, 11); |
| 20 |
if (!Date.prototype.isPrototypeOf(x12)) { |
| 21 |
$ERROR('#1.2: Date.prototype.isPrototypeOf(x12)'); |
| 22 |
} |
| 23 |
|
| 24 |
var x13 = new Date(1899, 11); |
| 25 |
if (Date.prototype !== x13.constructor.prototype) { |
| 26 |
$ERROR("#1.3: Date.prototype === x13.constructor.prototype"); |
| 27 |
} |
| 28 |
|
| 29 |
var x21 = new Date(1899, 12); |
| 30 |
if (typeof x21.constructor.prototype !== "object") { |
| 31 |
$ERROR("#2.1: typeof x11.constructor.prototype === 'object'"); |
| 32 |
} |
| 33 |
|
| 34 |
var x22 = new Date(1899, 12); |
| 35 |
if (!Date.prototype.isPrototypeOf(x22)) { |
| 36 |
$ERROR('#2.2: Date.prototype.isPrototypeOf(x22)'); |
| 37 |
} |
| 38 |
|
| 39 |
var x23 = new Date(1899, 12); |
| 40 |
if (Date.prototype !== x23.constructor.prototype) { |
| 41 |
$ERROR("#2.3: Date.prototype === x23.constructor.prototype"); |
| 42 |
} |
| 43 |
|
| 44 |
var x31 = new Date(1900, 0); |
| 45 |
if (typeof x31.constructor.prototype !== "object") { |
| 46 |
$ERROR("#3.1: typeof x31.constructor.prototype === 'object'"); |
| 47 |
} |
| 48 |
|
| 49 |
var x32 = new Date(1900, 0); |
| 50 |
if (!Date.prototype.isPrototypeOf(x32)) { |
| 51 |
$ERROR('#3.2: Date.prototype.isPrototypeOf(x32)'); |
| 52 |
} |
| 53 |
|
| 54 |
var x33 = new Date(1900, 0); |
| 55 |
if (Date.prototype !== x33.constructor.prototype) { |
| 56 |
$ERROR("#3.3: Date.prototype === x33.constructor.prototype"); |
| 57 |
} |
| 58 |
|
| 59 |
var x41 = new Date(1969, 11); |
| 60 |
if (typeof x41.constructor.prototype !== "object") { |
| 61 |
$ERROR("#4.1: typeof x41.constructor.prototype === 'object'"); |
| 62 |
} |
| 63 |
|
| 64 |
var x42 = new Date(1969, 11); |
| 65 |
if (!Date.prototype.isPrototypeOf(x42)) { |
| 66 |
$ERROR('#4.2: Date.prototype.isPrototypeOf(x42)'); |
| 67 |
} |
| 68 |
|
| 69 |
var x43 = new Date(1969, 11); |
| 70 |
if (Date.prototype !== x43.constructor.prototype) { |
| 71 |
$ERROR("#4.3: Date.prototype === x43.constructor.prototype"); |
| 72 |
} |
| 73 |
|
| 74 |
var x51 = new Date(1969, 12); |
| 75 |
if (typeof x51.constructor.prototype !== "object") { |
| 76 |
$ERROR("#5.1: typeof x51.constructor.prototype === 'object'"); |
| 77 |
} |
| 78 |
|
| 79 |
var x52 = new Date(1969, 12); |
| 80 |
if (!Date.prototype.isPrototypeOf(x52)) { |
| 81 |
$ERROR('#5.2: Date.prototype.isPrototypeOf(x52)'); |
| 82 |
} |
| 83 |
|
| 84 |
var x53 = new Date(1969, 12); |
| 85 |
if (Date.prototype !== x53.constructor.prototype) { |
| 86 |
$ERROR("#5.3: Date.prototype === x53.constructor.prototype"); |
| 87 |
} |
| 88 |
|
| 89 |
var x61 = new Date(1970, 0); |
| 90 |
if (typeof x61.constructor.prototype !== "object") { |
| 91 |
$ERROR("#6.1: typeof x61.constructor.prototype === 'object'"); |
| 92 |
} |
| 93 |
|
| 94 |
var x62 = new Date(1970, 0); |
| 95 |
if (!Date.prototype.isPrototypeOf(x62)) { |
| 96 |
$ERROR('#6.2: Date.prototype.isPrototypeOf(x62)'); |
| 97 |
} |
| 98 |
|
| 99 |
var x63 = new Date(1970, 0); |
| 100 |
if (Date.prototype !== x63.constructor.prototype) { |
| 101 |
$ERROR("#6.3: Date.prototype === x63.constructor.prototype"); |
| 102 |
} |
| 103 |
|
| 104 |
var x71 = new Date(1999, 11); |
| 105 |
if (typeof x71.constructor.prototype !== "object") { |
| 106 |
$ERROR("#7.1: typeof x71.constructor.prototype === 'object'"); |
| 107 |
} |
| 108 |
|
| 109 |
var x72 = new Date(1999, 11); |
| 110 |
if (!Date.prototype.isPrototypeOf(x72)) { |
| 111 |
$ERROR('#7.2: Date.prototype.isPrototypeOf(x72)'); |
| 112 |
} |
| 113 |
|
| 114 |
var x73 = new Date(1999, 11); |
| 115 |
if (Date.prototype !== x73.constructor.prototype) { |
| 116 |
$ERROR("#7.3: Date.prototype === x73.constructor.prototype"); |
| 117 |
} |
| 118 |
|
| 119 |
var x81 = new Date(1999, 12); |
| 120 |
if (typeof x81.constructor.prototype !== "object") { |
| 121 |
$ERROR("#8.1: typeof x81.constructor.prototype === 'object'"); |
| 122 |
} |
| 123 |
|
| 124 |
var x82 = new Date(1999, 12); |
| 125 |
if (!Date.prototype.isPrototypeOf(x82)) { |
| 126 |
$ERROR('#8.2: Date.prototype.isPrototypeOf(x82)'); |
| 127 |
} |
| 128 |
|
| 129 |
var x83 = new Date(1999, 12); |
| 130 |
if (Date.prototype !== x83.constructor.prototype) { |
| 131 |
$ERROR("#8.3: Date.prototype === x83.constructor.prototype"); |
| 132 |
} |
| 133 |
|
| 134 |
var x91 = new Date(2000, 0); |
| 135 |
if (typeof x91.constructor.prototype !== "object") { |
| 136 |
$ERROR("#9.1: typeof x91.constructor.prototype === 'object'"); |
| 137 |
} |
| 138 |
|
| 139 |
var x92 = new Date(2000, 0); |
| 140 |
if (!Date.prototype.isPrototypeOf(x92)) { |
| 141 |
$ERROR('#9.2: Date.prototype.isPrototypeOf(x92)'); |
| 142 |
} |
| 143 |
|
| 144 |
var x93 = new Date(2000, 0); |
| 145 |
if (Date.prototype !== x93.constructor.prototype) { |
| 146 |
$ERROR("#9.3: Date.prototype === x93.constructor.prototype"); |
| 147 |
} |
| 148 |
|
| 149 |
var x101 = new Date(2099, 11); |
| 150 |
if (typeof x101.constructor.prototype !== "object") { |
| 151 |
$ERROR("#10.1: typeof x101.constructor.prototype === 'object'"); |
| 152 |
} |
| 153 |
|
| 154 |
var x102 = new Date(2099, 11); |
| 155 |
if (!Date.prototype.isPrototypeOf(x102)) { |
| 156 |
$ERROR('#10.2: Date.prototype.isPrototypeOf(x102)'); |
| 157 |
} |
| 158 |
|
| 159 |
var x103 = new Date(2099, 11); |
| 160 |
if (Date.prototype !== x103.constructor.prototype) { |
| 161 |
$ERROR("#10.3: Date.prototype === x103.constructor.prototype"); |
| 162 |
} |
| 163 |
|
| 164 |
var x111 = new Date(2099, 12); |
| 165 |
if (typeof x111.constructor.prototype !== "object") { |
| 166 |
$ERROR("#11.1: typeof x111.constructor.prototype === 'object'"); |
| 167 |
} |
| 168 |
|
| 169 |
var x112 = new Date(2099, 12); |
| 170 |
if (!Date.prototype.isPrototypeOf(x112)) { |
| 171 |
$ERROR('#11.2: Date.prototype.isPrototypeOf(x112)'); |
| 172 |
} |
| 173 |
|
| 174 |
var x113 = new Date(2099, 12); |
| 175 |
if (Date.prototype !== x113.constructor.prototype) { |
| 176 |
$ERROR("#11.3: Date.prototype === x113.constructor.prototype"); |
| 177 |
} |
| 178 |
|
| 179 |
var x121 = new Date(2100, 0); |
| 180 |
if (typeof x121.constructor.prototype !== "object") { |
| 181 |
$ERROR("#12.1: typeof x121.constructor.prototype === 'object'"); |
| 182 |
} |
| 183 |
|
| 184 |
var x122 = new Date(2100, 0); |
| 185 |
if (!Date.prototype.isPrototypeOf(x122)) { |
| 186 |
$ERROR('#12.2: Date.prototype.isPrototypeOf(x122)'); |
| 187 |
} |
| 188 |
|
| 189 |
var x123 = new Date(2100, 0); |
| 190 |
if (Date.prototype !== x123.constructor.prototype) { |
| 191 |
$ERROR("#12.3: Date.prototype === x123.constructor.prototype"); |
| 192 |
} |