Transform legacy format to harness assertions

This commit is contained in:
rwaldron 2021-08-11 14:13:41 -04:00 committed by Leo Balter
parent 1667f56c04
commit 1c24e4b915
403 changed files with 5119 additions and 4738 deletions

View File

@ -14,7 +14,11 @@ includes: [propertyHelper.js]
features: [Symbol.toStringTag] features: [Symbol.toStringTag]
---*/ ---*/
assert.sameValue(DataView.prototype[Symbol.toStringTag], 'DataView'); assert.sameValue(
DataView.prototype[Symbol.toStringTag],
'DataView',
'The value of DataView.prototype[Symbol.toStringTag] is expected to be "DataView"'
);
verifyNotEnumerable(DataView.prototype, Symbol.toStringTag); verifyNotEnumerable(DataView.prototype, Symbol.toStringTag);
verifyNotWritable(DataView.prototype, Symbol.toStringTag); verifyNotWritable(DataView.prototype, Symbol.toStringTag);

View File

@ -9,73 +9,63 @@ info: |
es5id: 15.9.2.1_A1 es5id: 15.9.2.1_A1
description: Checking type of returned value description: Checking type of returned value
---*/ ---*/
assert.sameValue(typeof Date(), "string", 'The value of `typeof Date()` is expected to be "string"');
assert.sameValue(typeof Date(1), "string", 'The value of `typeof Date(1)` is expected to be "string"');
assert.sameValue(typeof Date(1970, 1), "string", 'The value of `typeof Date(1970, 1)` is expected to be "string"');
//CHECK#1 assert.sameValue(
if (typeof Date() !== "string") { typeof Date(1970, 1, 1),
throw new Test262Error('#1: typeof Date() should be "string", actual is ' + (typeof Date())); "string",
} 'The value of `typeof Date(1970, 1, 1)` is expected to be "string"'
);
//CHECK#2 assert.sameValue(
if (typeof Date(1) !== "string") { typeof Date(1970, 1, 1, 1),
throw new Test262Error('#2: typeof Date(1) should be "string", actual is ' + (typeof Date(1))); "string",
} 'The value of `typeof Date(1970, 1, 1, 1)` is expected to be "string"'
);
//CHECK#3 assert.sameValue(
if (typeof Date(1970, 1) !== "string") { typeof Date(1970, 1, 1, 1),
throw new Test262Error('#3: typeof Date(1970, 1) should be "string", actual is ' + (typeof Date(1970, 1))); "string",
} 'The value of `typeof Date(1970, 1, 1, 1)` is expected to be "string"'
);
//CHECK#4 assert.sameValue(
if (typeof Date(1970, 1, 1) !== "string") { typeof Date(1970, 1, 1, 1, 0),
throw new Test262Error('#4: typeof Date(1970, 1, 1) should be "string", actual is ' + (typeof Date(1970, 1, 1))); "string",
} 'The value of `typeof Date(1970, 1, 1, 1, 0)` is expected to be "string"'
);
//CHECK#5 assert.sameValue(
if (typeof Date(1970, 1, 1, 1) !== "string") { typeof Date(1970, 1, 1, 1, 0, 0),
throw new Test262Error('#5: typeof Date(1970, 1, 1, 1) should be "string", actual is ' + (typeof Date(1970, 1, 1, 1))); "string",
} 'The value of `typeof Date(1970, 1, 1, 1, 0, 0)` is expected to be "string"'
);
//CHECK#6 assert.sameValue(
if (typeof Date(1970, 1, 1, 1) !== "string") { typeof Date(1970, 1, 1, 1, 0, 0, 0),
throw new Test262Error('#7: typeof Date(1970, 1, 1, 1) should be "string", actual is ' + (typeof Date(1970, 1, 1, 1))); "string",
} 'The value of `typeof Date(1970, 1, 1, 1, 0, 0, 0)` is expected to be "string"'
);
//CHECK#8 assert.sameValue(
if (typeof Date(1970, 1, 1, 1, 0) !== "string") { typeof Date(Number.NaN),
throw new Test262Error('#8: typeof Date(1970, 1, 1, 1, 0) should be "string", actual is ' + (typeof Date(1970, 1, 1, 1, 0))); "string",
} 'The value of `typeof Date(Number.NaN)` is expected to be "string"'
);
//CHECK#9 assert.sameValue(
if (typeof Date(1970, 1, 1, 1, 0, 0) !== "string") { typeof Date(Number.POSITIVE_INFINITY),
throw new Test262Error('#9: typeof Date(1970, 1, 1, 1, 0, 0) should be "string", actual is ' + (typeof Date(1970, 1, 1, 1, 0, 0))); "string",
} 'The value of `typeof Date(Number.POSITIVE_INFINITY)` is expected to be "string"'
);
//CHECK#10 assert.sameValue(
if (typeof Date(1970, 1, 1, 1, 0, 0, 0) !== "string") { typeof Date(Number.NEGATIVE_INFINITY),
throw new Test262Error('#10: typeof Date(1970, 1, 1, 1, 0, 0, 0) should be "string", actual is ' + (typeof Date(1970, 1, 1, 1, 0, 0, 0))); "string",
} 'The value of `typeof Date(Number.NEGATIVE_INFINITY)` is expected to be "string"'
);
//CHECK#11 assert.sameValue(typeof Date(undefined), "string", 'The value of `typeof Date(undefined)` is expected to be "string"');
if (typeof Date(Number.NaN) !== "string") { assert.sameValue(typeof Date(null), "string", 'The value of `typeof Date(null)` is expected to be "string"');
throw new Test262Error('#11: typeof Date(Number.NaN) should be "string", actual is ' + (typeof Date(Number.NaN)));
}
//CHECK#12
if (typeof Date(Number.POSITIVE_INFINITY) !== "string") {
throw new Test262Error('#12: typeof Date(Number.POSITIVE_INFINITY) should be "string", actual is ' + (typeof Date(Number.POSITIVE_INFINITY)));
}
//CHECK#13
if (typeof Date(Number.NEGATIVE_INFINITY) !== "string") {
throw new Test262Error('#13: typeof Date(Number.NEGATIVE_INFINITY) should be "string", actual is ' + (typeof Date(Number.NEGATIVE_INFINITY)));
}
//CHECK#14
if (typeof Date(undefined) !== "string") {
throw new Test262Error('#14: typeof Date(undefined) should be "string", actual is ' + (typeof Date(undefined)));
}
//CHECK#15
if (typeof Date(null) !== "string") {
throw new Test262Error('#15: typeof Date(null) should be "string", actual is ' + (typeof Date(null)));
}

View File

@ -21,72 +21,72 @@ function isEqual(d1, d2) {
} }
} }
//CHECK#1 assert(
if (!isEqual(Date(), (new Date()).toString())) { isEqual(Date(), (new Date()).toString()),
throw new Test262Error('#1: Date() is equal to (new Date()).toString()'); 'isEqual(Date(), (new Date()).toString()) must return true'
} );
//CHECK#2 assert(
if (!isEqual(Date(1), (new Date()).toString())) { isEqual(Date(1), (new Date()).toString()),
throw new Test262Error('#2: Date(1) is equal to (new Date()).toString()'); 'isEqual(Date(1), (new Date()).toString()) must return true'
} );
//CHECK#3 assert(
if (!isEqual(Date(1970, 1), (new Date()).toString())) { isEqual(Date(1970, 1), (new Date()).toString()),
throw new Test262Error('#3: Date(1970, 1) is equal to (new Date()).toString()'); 'isEqual(Date(1970, 1), (new Date()).toString()) must return true'
} );
//CHECK#4 assert(
if (!isEqual(Date(1970, 1, 1), (new Date()).toString())) { isEqual(Date(1970, 1, 1), (new Date()).toString()),
throw new Test262Error('#4: Date(1970, 1, 1) is equal to (new Date()).toString()'); 'isEqual(Date(1970, 1, 1), (new Date()).toString()) must return true'
} );
//CHECK#5 assert(
if (!isEqual(Date(1970, 1, 1, 1), (new Date()).toString())) { isEqual(Date(1970, 1, 1, 1), (new Date()).toString()),
throw new Test262Error('#5: Date(1970, 1, 1, 1) is equal to (new Date()).toString()'); 'isEqual(Date(1970, 1, 1, 1), (new Date()).toString()) must return true'
} );
//CHECK#6 assert(
if (!isEqual(Date(1970, 1, 1, 1), (new Date()).toString())) { isEqual(Date(1970, 1, 1, 1), (new Date()).toString()),
throw new Test262Error('#7: Date(1970, 1, 1, 1) is equal to (new Date()).toString()'); 'isEqual(Date(1970, 1, 1, 1), (new Date()).toString()) must return true'
} );
//CHECK#8 assert(
if (!isEqual(Date(1970, 1, 1, 1, 0), (new Date()).toString())) { isEqual(Date(1970, 1, 1, 1, 0), (new Date()).toString()),
throw new Test262Error('#8: Date(1970, 1, 1, 1, 0) is equal to (new Date()).toString()'); 'isEqual(Date(1970, 1, 1, 1, 0), (new Date()).toString()) must return true'
} );
//CHECK#9 assert(
if (!isEqual(Date(1970, 1, 1, 1, 0, 0), (new Date()).toString())) { isEqual(Date(1970, 1, 1, 1, 0, 0), (new Date()).toString()),
throw new Test262Error('#9: Date(1970, 1, 1, 1, 0, 0) is equal to (new Date()).toString()'); 'isEqual(Date(1970, 1, 1, 1, 0, 0), (new Date()).toString()) must return true'
} );
//CHECK#10 assert(
if (!isEqual(Date(1970, 1, 1, 1, 0, 0, 0), (new Date()).toString())) { isEqual(Date(1970, 1, 1, 1, 0, 0, 0), (new Date()).toString()),
throw new Test262Error('#10: Date(1970, 1, 1, 1, 0, 0, 0) is equal to (new Date()).toString()'); 'isEqual(Date(1970, 1, 1, 1, 0, 0, 0), (new Date()).toString()) must return true'
} );
//CHECK#11 assert(
if (!isEqual(Date(Number.NaN), (new Date()).toString())) { isEqual(Date(Number.NaN), (new Date()).toString()),
throw new Test262Error('#11: Date(Number.NaN) is equal to (new Date()).toString()'); 'isEqual(Date(Number.NaN), (new Date()).toString()) must return true'
} );
//CHECK#12 assert(
if (!isEqual(Date(Number.POSITIVE_INFINITY), (new Date()).toString())) { isEqual(Date(Number.POSITIVE_INFINITY), (new Date()).toString()),
throw new Test262Error('#12: Date(Number.POSITIVE_INFINITY) is equal to (new Date()).toString()'); 'isEqual(Date(Number.POSITIVE_INFINITY), (new Date()).toString()) must return true'
} );
//CHECK#13 assert(
if (!isEqual(Date(Number.NEGATIVE_INFINITY), (new Date()).toString())) { isEqual(Date(Number.NEGATIVE_INFINITY), (new Date()).toString()),
throw new Test262Error('#13: Date(Number.NEGATIVE_INFINITY) is equal to (new Date()).toString()'); 'isEqual(Date(Number.NEGATIVE_INFINITY), (new Date()).toString()) must return true'
} );
//CHECK#14 assert(
if (!isEqual(Date(undefined), (new Date()).toString())) { isEqual(Date(undefined), (new Date()).toString()),
throw new Test262Error('#14: Date(undefined) is equal to (new Date()).toString()'); 'isEqual(Date(undefined), (new Date()).toString()) must return true'
} );
//CHECK#15 assert(
if (!isEqual(Date(null), (new Date()).toString())) { isEqual(Date(null), (new Date()).toString()),
throw new Test262Error('#15: Date(null) is equal to (new Date()).toString()'); 'isEqual(Date(null), (new Date()).toString()) must return true'
} );

View File

@ -9,218 +9,170 @@ esid: sec-date-year-month-date-hours-minutes-seconds-ms
description: 2 arguments, (year, month) description: 2 arguments, (year, month)
---*/ ---*/
if (typeof new Date(1899, 11) !== "object") { assert.sameValue(
throw new Test262Error("#1.1: typeof new Date(1899, 11) should be 'object'"); typeof new Date(1899, 11),
} "object",
'The value of `typeof new Date(1899, 11)` is expected to be "object"'
);
if (new Date(1899, 11) === undefined) { assert.notSameValue(new Date(1899, 11), undefined, 'new Date(1899, 11) is expected to not equal ``undefined``');
throw new Test262Error("#1.2: new Date(1899, 11) should not be undefined");
}
var x13 = new Date(1899, 11); var x13 = new Date(1899, 11);
if (typeof x13 !== "object") { assert.sameValue(typeof x13, "object", 'The value of `typeof x13` is expected to be "object"');
throw new Test262Error("#1.3: typeof new Date(1899, 11) should be 'object'");
}
var x14 = new Date(1899, 11); var x14 = new Date(1899, 11);
if (x14 === undefined) { assert.notSameValue(x14, undefined, 'The value of x14 is expected to not equal ``undefined``');
throw new Test262Error("#1.4: new Date(1899, 11) should not be undefined");
}
if (typeof new Date(1899, 12) !== "object") { assert.sameValue(
throw new Test262Error("#2.1: typeof new Date(1899, 12) should be 'object'"); typeof new Date(1899, 12),
} "object",
'The value of `typeof new Date(1899, 12)` is expected to be "object"'
);
if (new Date(1899, 12) === undefined) { assert.notSameValue(new Date(1899, 12), undefined, 'new Date(1899, 12) is expected to not equal ``undefined``');
throw new Test262Error("#2.2: new Date(1899, 12) should not be undefined");
}
var x23 = new Date(1899, 12); var x23 = new Date(1899, 12);
if (typeof x23 !== "object") { assert.sameValue(typeof x23, "object", 'The value of `typeof x23` is expected to be "object"');
throw new Test262Error("#2.3: typeof new Date(1899, 12) should be 'object'");
}
var x24 = new Date(1899, 12); var x24 = new Date(1899, 12);
if (x24 === undefined) { assert.notSameValue(x24, undefined, 'The value of x24 is expected to not equal ``undefined``');
throw new Test262Error("#2.4: new Date(1899, 12) should not be undefined");
}
if (typeof new Date(1900, 0) !== "object") { assert.sameValue(
throw new Test262Error("#3.1: typeof new Date(1900, 0) should be 'object'"); typeof new Date(1900, 0),
} "object",
'The value of `typeof new Date(1900, 0)` is expected to be "object"'
);
if (new Date(1900, 0) === undefined) { assert.notSameValue(new Date(1900, 0), undefined, 'new Date(1900, 0) is expected to not equal ``undefined``');
throw new Test262Error("#3.2: new Date(1900, 0) should not be undefined");
}
var x33 = new Date(1900, 0); var x33 = new Date(1900, 0);
if (typeof x33 !== "object") { assert.sameValue(typeof x33, "object", 'The value of `typeof x33` is expected to be "object"');
throw new Test262Error("#3.3: typeof new Date(1900, 0) should be 'object'");
}
var x34 = new Date(1900, 0); var x34 = new Date(1900, 0);
if (x34 === undefined) { assert.notSameValue(x34, undefined, 'The value of x34 is expected to not equal ``undefined``');
throw new Test262Error("#3.4: new Date(1900, 0) should not be undefined");
}
if (typeof new Date(1969, 11) !== "object") { assert.sameValue(
throw new Test262Error("#4.1: typeof new Date(1969, 11) should be 'object'"); typeof new Date(1969, 11),
} "object",
'The value of `typeof new Date(1969, 11)` is expected to be "object"'
);
if (new Date(1969, 11) === undefined) { assert.notSameValue(new Date(1969, 11), undefined, 'new Date(1969, 11) is expected to not equal ``undefined``');
throw new Test262Error("#4.2: new Date(1969, 11) should not be undefined");
}
var x43 = new Date(1969, 11); var x43 = new Date(1969, 11);
if (typeof x43 !== "object") { assert.sameValue(typeof x43, "object", 'The value of `typeof x43` is expected to be "object"');
throw new Test262Error("#4.3: typeof new Date(1969, 11) should be 'object'");
}
var x44 = new Date(1969, 11); var x44 = new Date(1969, 11);
if (x44 === undefined) { assert.notSameValue(x44, undefined, 'The value of x44 is expected to not equal ``undefined``');
throw new Test262Error("#4.4: new Date(1969, 11) should not be undefined");
}
if (typeof new Date(1969, 12) !== "object") { assert.sameValue(
throw new Test262Error("#5.1: typeof new Date(1969, 12) should be 'object'"); typeof new Date(1969, 12),
} "object",
'The value of `typeof new Date(1969, 12)` is expected to be "object"'
);
if (new Date(1969, 12) === undefined) { assert.notSameValue(new Date(1969, 12), undefined, 'new Date(1969, 12) is expected to not equal ``undefined``');
throw new Test262Error("#5.2: new Date(1969, 12) should not be undefined");
}
var x53 = new Date(1969, 12); var x53 = new Date(1969, 12);
if (typeof x53 !== "object") { assert.sameValue(typeof x53, "object", 'The value of `typeof x53` is expected to be "object"');
throw new Test262Error("#5.3: typeof new Date(1969, 12) should be 'object'");
}
var x54 = new Date(1969, 12); var x54 = new Date(1969, 12);
if (x54 === undefined) { assert.notSameValue(x54, undefined, 'The value of x54 is expected to not equal ``undefined``');
throw new Test262Error("#5.4: new Date(1969, 12) should not be undefined");
}
if (typeof new Date(1970, 0) !== "object") { assert.sameValue(
throw new Test262Error("#6.1: typeof new Date(1970, 0) should be 'object'"); typeof new Date(1970, 0),
} "object",
'The value of `typeof new Date(1970, 0)` is expected to be "object"'
);
if (new Date(1970, 0) === undefined) { assert.notSameValue(new Date(1970, 0), undefined, 'new Date(1970, 0) is expected to not equal ``undefined``');
throw new Test262Error("#6.2: new Date(1970, 0) should not be undefined");
}
var x63 = new Date(1970, 0); var x63 = new Date(1970, 0);
if (typeof x63 !== "object") { assert.sameValue(typeof x63, "object", 'The value of `typeof x63` is expected to be "object"');
throw new Test262Error("#6.3: typeof new Date(1970, 0) should be 'object'");
}
var x64 = new Date(1970, 0); var x64 = new Date(1970, 0);
if (x64 === undefined) { assert.notSameValue(x64, undefined, 'The value of x64 is expected to not equal ``undefined``');
throw new Test262Error("#6.4: new Date(1970, 0) should not be undefined");
}
if (typeof new Date(1999, 11) !== "object") { assert.sameValue(
throw new Test262Error("#7.1: typeof new Date(1999, 11) should be 'object'"); typeof new Date(1999, 11),
} "object",
'The value of `typeof new Date(1999, 11)` is expected to be "object"'
);
if (new Date(1999, 11) === undefined) { assert.notSameValue(new Date(1999, 11), undefined, 'new Date(1999, 11) is expected to not equal ``undefined``');
throw new Test262Error("#7.2: new Date(1999, 11) should not be undefined");
}
var x73 = new Date(1999, 11); var x73 = new Date(1999, 11);
if (typeof x73 !== "object") { assert.sameValue(typeof x73, "object", 'The value of `typeof x73` is expected to be "object"');
throw new Test262Error("#7.3: typeof new Date(1999, 11) should be 'object'");
}
var x74 = new Date(1999, 11); var x74 = new Date(1999, 11);
if (x74 === undefined) { assert.notSameValue(x74, undefined, 'The value of x74 is expected to not equal ``undefined``');
throw new Test262Error("#7.4: new Date(1999, 11) should not be undefined");
}
if (typeof new Date(1999, 12) !== "object") { assert.sameValue(
throw new Test262Error("#8.1: typeof new Date(1999, 12) should be 'object'"); typeof new Date(1999, 12),
} "object",
'The value of `typeof new Date(1999, 12)` is expected to be "object"'
);
if (new Date(1999, 12) === undefined) { assert.notSameValue(new Date(1999, 12), undefined, 'new Date(1999, 12) is expected to not equal ``undefined``');
throw new Test262Error("#8.2: new Date(1999, 12) should not be undefined");
}
var x83 = new Date(1999, 12); var x83 = new Date(1999, 12);
if (typeof x83 !== "object") { assert.sameValue(typeof x83, "object", 'The value of `typeof x83` is expected to be "object"');
throw new Test262Error("#8.3: typeof new Date(1999, 12) should be 'object'");
}
var x84 = new Date(1999, 12); var x84 = new Date(1999, 12);
if (x84 === undefined) { assert.notSameValue(x84, undefined, 'The value of x84 is expected to not equal ``undefined``');
throw new Test262Error("#8.4: new Date(1999, 12) should not be undefined");
}
if (typeof new Date(2000, 0) !== "object") { assert.sameValue(
throw new Test262Error("#9.1: typeof new Date(2000, 0) should be 'object'"); typeof new Date(2000, 0),
} "object",
'The value of `typeof new Date(2000, 0)` is expected to be "object"'
);
if (new Date(2000, 0) === undefined) { assert.notSameValue(new Date(2000, 0), undefined, 'new Date(2000, 0) is expected to not equal ``undefined``');
throw new Test262Error("#9.2: new Date(2000, 0) should not be undefined");
}
var x93 = new Date(2000, 0); var x93 = new Date(2000, 0);
if (typeof x93 !== "object") { assert.sameValue(typeof x93, "object", 'The value of `typeof x93` is expected to be "object"');
throw new Test262Error("#9.3: typeof new Date(2000, 0) should be 'object'");
}
var x94 = new Date(2000, 0); var x94 = new Date(2000, 0);
if (x94 === undefined) { assert.notSameValue(x94, undefined, 'The value of x94 is expected to not equal ``undefined``');
throw new Test262Error("#9.4: new Date(2000, 0) should not be undefined");
}
if (typeof new Date(2099, 11) !== "object") { assert.sameValue(
throw new Test262Error("#10.1: typeof new Date(2099, 11) should be 'object'"); typeof new Date(2099, 11),
} "object",
'The value of `typeof new Date(2099, 11)` is expected to be "object"'
);
if (new Date(2099, 11) === undefined) { assert.notSameValue(new Date(2099, 11), undefined, 'new Date(2099, 11) is expected to not equal ``undefined``');
throw new Test262Error("#10.2: new Date(2099, 11) should not be undefined");
}
var x103 = new Date(2099, 11); var x103 = new Date(2099, 11);
if (typeof x103 !== "object") { assert.sameValue(typeof x103, "object", 'The value of `typeof x103` is expected to be "object"');
throw new Test262Error("#10.3: typeof new Date(2099, 11) should be 'object'");
}
var x104 = new Date(2099, 11); var x104 = new Date(2099, 11);
if (x104 === undefined) { assert.notSameValue(x104, undefined, 'The value of x104 is expected to not equal ``undefined``');
throw new Test262Error("#10.4: new Date(2099, 11) should not be undefined");
}
if (typeof new Date(2099, 12) !== "object") { assert.sameValue(
throw new Test262Error("#11.1: typeof new Date(2099, 12) should be 'object'"); typeof new Date(2099, 12),
} "object",
'The value of `typeof new Date(2099, 12)` is expected to be "object"'
);
if (new Date(2099, 12) === undefined) { assert.notSameValue(new Date(2099, 12), undefined, 'new Date(2099, 12) is expected to not equal ``undefined``');
throw new Test262Error("#11.2: new Date(2099, 12) should not be undefined");
}
var x113 = new Date(2099, 12); var x113 = new Date(2099, 12);
if (typeof x113 !== "object") { assert.sameValue(typeof x113, "object", 'The value of `typeof x113` is expected to be "object"');
throw new Test262Error("#11.3: typeof new Date(2099, 12) should be 'object'");
}
var x114 = new Date(2099, 12); var x114 = new Date(2099, 12);
if (x114 === undefined) { assert.notSameValue(x114, undefined, 'The value of x114 is expected to not equal ``undefined``');
throw new Test262Error("#11.4: new Date(2099, 12) should not be undefined");
}
if (typeof new Date(2100, 0) !== "object") { assert.sameValue(
throw new Test262Error("#12.1: typeof new Date(2100, 0) should be 'object'"); typeof new Date(2100, 0),
} "object",
'The value of `typeof new Date(2100, 0)` is expected to be "object"'
);
if (new Date(2100, 0) === undefined) { assert.notSameValue(new Date(2100, 0), undefined, 'new Date(2100, 0) is expected to not equal ``undefined``');
throw new Test262Error("#12.2: new Date(2100, 0) should not be undefined");
}
var x123 = new Date(2100, 0); var x123 = new Date(2100, 0);
if (typeof x123 !== "object") { assert.sameValue(typeof x123, "object", 'The value of `typeof x123` is expected to be "object"');
throw new Test262Error("#12.3: typeof new Date(2100, 0) should be 'object'");
}
var x124 = new Date(2100, 0); var x124 = new Date(2100, 0);
if (x124 === undefined) { assert.notSameValue(x124, undefined, 'The value of x124 is expected to not equal ``undefined``');
throw new Test262Error("#12.4: new Date(2100, 0) should not be undefined");
}

View File

@ -9,218 +9,170 @@ esid: sec-date-year-month-date-hours-minutes-seconds-ms
description: 3 arguments, (year, month, date) description: 3 arguments, (year, month, date)
---*/ ---*/
if (typeof new Date(1899, 11, 31) !== "object") { assert.sameValue(
throw new Test262Error("#1.1: typeof new Date(1899, 11, 31) should be 'object'"); typeof new Date(1899, 11, 31),
} "object",
'The value of `typeof new Date(1899, 11, 31)` is expected to be "object"'
);
if (new Date(1899, 11, 31) === undefined) { assert.notSameValue(new Date(1899, 11, 31), undefined, 'new Date(1899, 11, 31) is expected to not equal ``undefined``');
throw new Test262Error("#1.2: new Date(1899, 11, 31) should not be undefined");
}
var x13 = new Date(1899, 11, 31); var x13 = new Date(1899, 11, 31);
if (typeof x13 !== "object") { assert.sameValue(typeof x13, "object", 'The value of `typeof x13` is expected to be "object"');
throw new Test262Error("#1.3: typeof new Date(1899, 11, 31) should be 'object'");
}
var x14 = new Date(1899, 11, 31); var x14 = new Date(1899, 11, 31);
if (x14 === undefined) { assert.notSameValue(x14, undefined, 'The value of x14 is expected to not equal ``undefined``');
throw new Test262Error("#1.4: new Date(1899, 11, 31) should not be undefined");
}
if (typeof new Date(1899, 12, 1) !== "object") { assert.sameValue(
throw new Test262Error("#2.1: typeof new Date(1899, 12, 1) should be 'object'"); typeof new Date(1899, 12, 1),
} "object",
'The value of `typeof new Date(1899, 12, 1)` is expected to be "object"'
);
if (new Date(1899, 12, 1) === undefined) { assert.notSameValue(new Date(1899, 12, 1), undefined, 'new Date(1899, 12, 1) is expected to not equal ``undefined``');
throw new Test262Error("#2.2: new Date(1899, 12, 1) should not be undefined");
}
var x23 = new Date(1899, 12, 1); var x23 = new Date(1899, 12, 1);
if (typeof x23 !== "object") { assert.sameValue(typeof x23, "object", 'The value of `typeof x23` is expected to be "object"');
throw new Test262Error("#2.3: typeof new Date(1899, 12, 1) should be 'object'");
}
var x24 = new Date(1899, 12, 1); var x24 = new Date(1899, 12, 1);
if (x24 === undefined) { assert.notSameValue(x24, undefined, 'The value of x24 is expected to not equal ``undefined``');
throw new Test262Error("#2.4: new Date(1899, 12, 1) should not be undefined");
}
if (typeof new Date(1900, 0, 1) !== "object") { assert.sameValue(
throw new Test262Error("#3.1: typeof new Date(1900, 0, 1) should be 'object'"); typeof new Date(1900, 0, 1),
} "object",
'The value of `typeof new Date(1900, 0, 1)` is expected to be "object"'
);
if (new Date(1900, 0, 1) === undefined) { assert.notSameValue(new Date(1900, 0, 1), undefined, 'new Date(1900, 0, 1) is expected to not equal ``undefined``');
throw new Test262Error("#3.2: new Date(1900, 0, 1) should not be undefined");
}
var x33 = new Date(1900, 0, 1); var x33 = new Date(1900, 0, 1);
if (typeof x33 !== "object") { assert.sameValue(typeof x33, "object", 'The value of `typeof x33` is expected to be "object"');
throw new Test262Error("#3.3: typeof new Date(1900, 0, 1) should be 'object'");
}
var x34 = new Date(1900, 0, 1); var x34 = new Date(1900, 0, 1);
if (x34 === undefined) { assert.notSameValue(x34, undefined, 'The value of x34 is expected to not equal ``undefined``');
throw new Test262Error("#3.4: new Date(1900, 0, 1) should not be undefined");
}
if (typeof new Date(1969, 11, 31) !== "object") { assert.sameValue(
throw new Test262Error("#4.1: typeof new Date(1969, 11, 31) should be 'object'"); typeof new Date(1969, 11, 31),
} "object",
'The value of `typeof new Date(1969, 11, 31)` is expected to be "object"'
);
if (new Date(1969, 11, 31) === undefined) { assert.notSameValue(new Date(1969, 11, 31), undefined, 'new Date(1969, 11, 31) is expected to not equal ``undefined``');
throw new Test262Error("#4.2: new Date(1969, 11, 31) should not be undefined");
}
var x43 = new Date(1969, 11, 31); var x43 = new Date(1969, 11, 31);
if (typeof x43 !== "object") { assert.sameValue(typeof x43, "object", 'The value of `typeof x43` is expected to be "object"');
throw new Test262Error("#4.3: typeof new Date(1969, 11, 31) should be 'object'");
}
var x44 = new Date(1969, 11, 31); var x44 = new Date(1969, 11, 31);
if (x44 === undefined) { assert.notSameValue(x44, undefined, 'The value of x44 is expected to not equal ``undefined``');
throw new Test262Error("#4.4: new Date(1969, 11, 31) should not be undefined");
}
if (typeof new Date(1969, 12, 1) !== "object") { assert.sameValue(
throw new Test262Error("#5.1: typeof new Date(1969, 12, 1) should be 'object'"); typeof new Date(1969, 12, 1),
} "object",
'The value of `typeof new Date(1969, 12, 1)` is expected to be "object"'
);
if (new Date(1969, 12, 1) === undefined) { assert.notSameValue(new Date(1969, 12, 1), undefined, 'new Date(1969, 12, 1) is expected to not equal ``undefined``');
throw new Test262Error("#5.2: new Date(1969, 12, 1) should not be undefined");
}
var x53 = new Date(1969, 12, 1); var x53 = new Date(1969, 12, 1);
if (typeof x53 !== "object") { assert.sameValue(typeof x53, "object", 'The value of `typeof x53` is expected to be "object"');
throw new Test262Error("#5.3: typeof new Date(1969, 12, 1) should be 'object'");
}
var x54 = new Date(1969, 12, 1); var x54 = new Date(1969, 12, 1);
if (x54 === undefined) { assert.notSameValue(x54, undefined, 'The value of x54 is expected to not equal ``undefined``');
throw new Test262Error("#5.4: new Date(1969, 12, 1) should not be undefined");
}
if (typeof new Date(1970, 0, 1) !== "object") { assert.sameValue(
throw new Test262Error("#6.1: typeof new Date(1970, 0, 1) should be 'object'"); typeof new Date(1970, 0, 1),
} "object",
'The value of `typeof new Date(1970, 0, 1)` is expected to be "object"'
);
if (new Date(1970, 0, 1) === undefined) { assert.notSameValue(new Date(1970, 0, 1), undefined, 'new Date(1970, 0, 1) is expected to not equal ``undefined``');
throw new Test262Error("#6.2: new Date(1970, 0, 1) should not be undefined");
}
var x63 = new Date(1970, 0, 1); var x63 = new Date(1970, 0, 1);
if (typeof x63 !== "object") { assert.sameValue(typeof x63, "object", 'The value of `typeof x63` is expected to be "object"');
throw new Test262Error("#6.3: typeof new Date(1970, 0, 1) should be 'object'");
}
var x64 = new Date(1970, 0, 1); var x64 = new Date(1970, 0, 1);
if (x64 === undefined) { assert.notSameValue(x64, undefined, 'The value of x64 is expected to not equal ``undefined``');
throw new Test262Error("#6.4: new Date(1970, 0, 1) should not be undefined");
}
if (typeof new Date(1999, 11, 31) !== "object") { assert.sameValue(
throw new Test262Error("#7.1: typeof new Date(1999, 11, 31) should be 'object'"); typeof new Date(1999, 11, 31),
} "object",
'The value of `typeof new Date(1999, 11, 31)` is expected to be "object"'
);
if (new Date(1999, 11, 31) === undefined) { assert.notSameValue(new Date(1999, 11, 31), undefined, 'new Date(1999, 11, 31) is expected to not equal ``undefined``');
throw new Test262Error("#7.2: new Date(1999, 11, 31) should not be undefined");
}
var x73 = new Date(1999, 11, 31); var x73 = new Date(1999, 11, 31);
if (typeof x73 !== "object") { assert.sameValue(typeof x73, "object", 'The value of `typeof x73` is expected to be "object"');
throw new Test262Error("#7.3: typeof new Date(1999, 11, 31) should be 'object'");
}
var x74 = new Date(1999, 11, 31); var x74 = new Date(1999, 11, 31);
if (x74 === undefined) { assert.notSameValue(x74, undefined, 'The value of x74 is expected to not equal ``undefined``');
throw new Test262Error("#7.4: new Date(1999, 11, 31) should not be undefined");
}
if (typeof new Date(1999, 12, 1) !== "object") { assert.sameValue(
throw new Test262Error("#8.1: typeof new Date(1999, 12, 1) should be 'object'"); typeof new Date(1999, 12, 1),
} "object",
'The value of `typeof new Date(1999, 12, 1)` is expected to be "object"'
);
if (new Date(1999, 12, 1) === undefined) { assert.notSameValue(new Date(1999, 12, 1), undefined, 'new Date(1999, 12, 1) is expected to not equal ``undefined``');
throw new Test262Error("#8.2: new Date(1999, 12, 1) should not be undefined");
}
var x83 = new Date(1999, 12, 1); var x83 = new Date(1999, 12, 1);
if (typeof x83 !== "object") { assert.sameValue(typeof x83, "object", 'The value of `typeof x83` is expected to be "object"');
throw new Test262Error("#8.3: typeof new Date(1999, 12, 1) should be 'object'");
}
var x84 = new Date(1999, 12, 1); var x84 = new Date(1999, 12, 1);
if (x84 === undefined) { assert.notSameValue(x84, undefined, 'The value of x84 is expected to not equal ``undefined``');
throw new Test262Error("#8.4: new Date(1999, 12, 1) should not be undefined");
}
if (typeof new Date(2000, 0, 1) !== "object") { assert.sameValue(
throw new Test262Error("#9.1: typeof new Date(2000, 0, 1) should be 'object'"); typeof new Date(2000, 0, 1),
} "object",
'The value of `typeof new Date(2000, 0, 1)` is expected to be "object"'
);
if (new Date(2000, 0, 1) === undefined) { assert.notSameValue(new Date(2000, 0, 1), undefined, 'new Date(2000, 0, 1) is expected to not equal ``undefined``');
throw new Test262Error("#9.2: new Date(2000, 0, 1) should not be undefined");
}
var x93 = new Date(2000, 0, 1); var x93 = new Date(2000, 0, 1);
if (typeof x93 !== "object") { assert.sameValue(typeof x93, "object", 'The value of `typeof x93` is expected to be "object"');
throw new Test262Error("#9.3: typeof new Date(2000, 0, 1) should be 'object'");
}
var x94 = new Date(2000, 0, 1); var x94 = new Date(2000, 0, 1);
if (x94 === undefined) { assert.notSameValue(x94, undefined, 'The value of x94 is expected to not equal ``undefined``');
throw new Test262Error("#9.4: new Date(2000, 0, 1) should not be undefined");
}
if (typeof new Date(2099, 11, 31) !== "object") { assert.sameValue(
throw new Test262Error("#10.1: typeof new Date(2099, 11, 31) should be 'object'"); typeof new Date(2099, 11, 31),
} "object",
'The value of `typeof new Date(2099, 11, 31)` is expected to be "object"'
);
if (new Date(2099, 11, 31) === undefined) { assert.notSameValue(new Date(2099, 11, 31), undefined, 'new Date(2099, 11, 31) is expected to not equal ``undefined``');
throw new Test262Error("#10.2: new Date(2099, 11, 31) should not be undefined");
}
var x103 = new Date(2099, 11, 31); var x103 = new Date(2099, 11, 31);
if (typeof x103 !== "object") { assert.sameValue(typeof x103, "object", 'The value of `typeof x103` is expected to be "object"');
throw new Test262Error("#10.3: typeof new Date(2099, 11, 31) should be 'object'");
}
var x104 = new Date(2099, 11, 31); var x104 = new Date(2099, 11, 31);
if (x104 === undefined) { assert.notSameValue(x104, undefined, 'The value of x104 is expected to not equal ``undefined``');
throw new Test262Error("#10.4: new Date(2099, 11, 31) should not be undefined");
}
if (typeof new Date(2099, 12, 1) !== "object") { assert.sameValue(
throw new Test262Error("#11.1: typeof new Date(2099, 12, 1) should be 'object'"); typeof new Date(2099, 12, 1),
} "object",
'The value of `typeof new Date(2099, 12, 1)` is expected to be "object"'
);
if (new Date(2099, 12, 1) === undefined) { assert.notSameValue(new Date(2099, 12, 1), undefined, 'new Date(2099, 12, 1) is expected to not equal ``undefined``');
throw new Test262Error("#11.2: new Date(2099, 12, 1) should not be undefined");
}
var x113 = new Date(2099, 12, 1); var x113 = new Date(2099, 12, 1);
if (typeof x113 !== "object") { assert.sameValue(typeof x113, "object", 'The value of `typeof x113` is expected to be "object"');
throw new Test262Error("#11.3: typeof new Date(2099, 12, 1) should be 'object'");
}
var x114 = new Date(2099, 12, 1); var x114 = new Date(2099, 12, 1);
if (x114 === undefined) { assert.notSameValue(x114, undefined, 'The value of x114 is expected to not equal ``undefined``');
throw new Test262Error("#11.4: new Date(2099, 12, 1) should not be undefined");
}
if (typeof new Date(2100, 0, 1) !== "object") { assert.sameValue(
throw new Test262Error("#12.1: typeof new Date(2100, 0, 1) should be 'object'"); typeof new Date(2100, 0, 1),
} "object",
'The value of `typeof new Date(2100, 0, 1)` is expected to be "object"'
);
if (new Date(2100, 0, 1) === undefined) { assert.notSameValue(new Date(2100, 0, 1), undefined, 'new Date(2100, 0, 1) is expected to not equal ``undefined``');
throw new Test262Error("#12.2: new Date(2100, 0, 1) should not be undefined");
}
var x123 = new Date(2100, 0, 1); var x123 = new Date(2100, 0, 1);
if (typeof x123 !== "object") { assert.sameValue(typeof x123, "object", 'The value of `typeof x123` is expected to be "object"');
throw new Test262Error("#12.3: typeof new Date(2100, 0, 1) should be 'object'");
}
var x124 = new Date(2100, 0, 1); var x124 = new Date(2100, 0, 1);
if (x124 === undefined) { assert.notSameValue(x124, undefined, 'The value of x124 is expected to not equal ``undefined``');
throw new Test262Error("#12.4: new Date(2100, 0, 1) should not be undefined");
}

View File

@ -8,219 +8,202 @@ info: |
esid: sec-date-year-month-date-hours-minutes-seconds-ms esid: sec-date-year-month-date-hours-minutes-seconds-ms
description: 4 arguments, (year, month, date, hours) description: 4 arguments, (year, month, date, hours)
---*/ ---*/
assert.sameValue(
typeof new Date(1899, 11, 31, 23),
"object",
'The value of `typeof new Date(1899, 11, 31, 23)` is expected to be "object"'
);
if (typeof new Date(1899, 11, 31, 23) !== "object") { assert.notSameValue(
throw new Test262Error("#1.1: typeof new Date(1899, 11, 31, 23) should be 'object'"); new Date(1899, 11, 31, 23),
} undefined,
'new Date(1899, 11, 31, 23) is expected to not equal ``undefined``'
if (new Date(1899, 11, 31, 23) === undefined) { );
throw new Test262Error("#1.2: new Date(1899, 11, 31, 23) should not be undefined");
}
var x13 = new Date(1899, 11, 31, 23); var x13 = new Date(1899, 11, 31, 23);
if (typeof x13 !== "object") { assert.sameValue(typeof x13, "object", 'The value of `typeof x13` is expected to be "object"');
throw new Test262Error("#1.3: typeof new Date(1899, 11, 31, 23) should be 'object'");
}
var x14 = new Date(1899, 11, 31, 23); var x14 = new Date(1899, 11, 31, 23);
if (x14 === undefined) { assert.notSameValue(x14, undefined, 'The value of x14 is expected to not equal ``undefined``');
throw new Test262Error("#1.4: new Date(1899, 11, 31, 23) should not be undefined");
}
if (typeof new Date(1899, 12, 1, 0) !== "object") { assert.sameValue(
throw new Test262Error("#2.1: typeof new Date(1899, 12, 1, 0) should be 'object'"); typeof new Date(1899, 12, 1, 0),
} "object",
'The value of `typeof new Date(1899, 12, 1, 0)` is expected to be "object"'
);
if (new Date(1899, 12, 1, 0) === undefined) { assert.notSameValue(
throw new Test262Error("#2.2: new Date(1899, 12, 1, 0) should not be undefined"); new Date(1899, 12, 1, 0),
} undefined,
'new Date(1899, 12, 1, 0) is expected to not equal ``undefined``'
);
var x23 = new Date(1899, 12, 1, 0); var x23 = new Date(1899, 12, 1, 0);
if (typeof x23 !== "object") { assert.sameValue(typeof x23, "object", 'The value of `typeof x23` is expected to be "object"');
throw new Test262Error("#2.3: typeof new Date(1899, 12, 1, 0) should be 'object'");
}
var x24 = new Date(1899, 12, 1, 0); var x24 = new Date(1899, 12, 1, 0);
if (x24 === undefined) { assert.notSameValue(x24, undefined, 'The value of x24 is expected to not equal ``undefined``');
throw new Test262Error("#2.4: new Date(1899, 12, 1, 0) should not be undefined");
}
if (typeof new Date(1900, 0, 1, 0) !== "object") { assert.sameValue(
throw new Test262Error("#3.1: typeof new Date(1900, 0, 1, 0) should be 'object'"); typeof new Date(1900, 0, 1, 0),
} "object",
'The value of `typeof new Date(1900, 0, 1, 0)` is expected to be "object"'
);
if (new Date(1900, 0, 1, 0) === undefined) { assert.notSameValue(new Date(1900, 0, 1, 0), undefined, 'new Date(1900, 0, 1, 0) is expected to not equal ``undefined``');
throw new Test262Error("#3.2: new Date(1900, 0, 1, 0) should not be undefined");
}
var x33 = new Date(1900, 0, 1, 0); var x33 = new Date(1900, 0, 1, 0);
if (typeof x33 !== "object") { assert.sameValue(typeof x33, "object", 'The value of `typeof x33` is expected to be "object"');
throw new Test262Error("#3.3: typeof new Date(1900, 0, 1, 0) should be 'object'");
}
var x34 = new Date(1900, 0, 1, 0); var x34 = new Date(1900, 0, 1, 0);
if (x34 === undefined) { assert.notSameValue(x34, undefined, 'The value of x34 is expected to not equal ``undefined``');
throw new Test262Error("#3.4: new Date(1900, 0, 1, 0) should not be undefined");
}
if (typeof new Date(1969, 11, 31, 23) !== "object") { assert.sameValue(
throw new Test262Error("#4.1: typeof new Date(1969, 11, 31, 23) should be 'object'"); typeof new Date(1969, 11, 31, 23),
} "object",
'The value of `typeof new Date(1969, 11, 31, 23)` is expected to be "object"'
);
if (new Date(1969, 11, 31, 23) === undefined) { assert.notSameValue(
throw new Test262Error("#4.2: new Date(1969, 11, 31, 23) should not be undefined"); new Date(1969, 11, 31, 23),
} undefined,
'new Date(1969, 11, 31, 23) is expected to not equal ``undefined``'
);
var x43 = new Date(1969, 11, 31, 23); var x43 = new Date(1969, 11, 31, 23);
if (typeof x43 !== "object") { assert.sameValue(typeof x43, "object", 'The value of `typeof x43` is expected to be "object"');
throw new Test262Error("#4.3: typeof new Date(1969, 11, 31, 23) should be 'object'");
}
var x44 = new Date(1969, 11, 31, 23); var x44 = new Date(1969, 11, 31, 23);
if (x44 === undefined) { assert.notSameValue(x44, undefined, 'The value of x44 is expected to not equal ``undefined``');
throw new Test262Error("#4.4: new Date(1969, 11, 31, 23) should not be undefined");
}
if (typeof new Date(1969, 12, 1, 0) !== "object") { assert.sameValue(
throw new Test262Error("#5.1: typeof new Date(1969, 12, 1, 0) should be 'object'"); typeof new Date(1969, 12, 1, 0),
} "object",
'The value of `typeof new Date(1969, 12, 1, 0)` is expected to be "object"'
);
if (new Date(1969, 12, 1, 0) === undefined) { assert.notSameValue(
throw new Test262Error("#5.2: new Date(1969, 12, 1, 0) should not be undefined"); new Date(1969, 12, 1, 0),
} undefined,
'new Date(1969, 12, 1, 0) is expected to not equal ``undefined``'
);
var x53 = new Date(1969, 12, 1, 0); var x53 = new Date(1969, 12, 1, 0);
if (typeof x53 !== "object") { assert.sameValue(typeof x53, "object", 'The value of `typeof x53` is expected to be "object"');
throw new Test262Error("#5.3: typeof new Date(1969, 12, 1, 0) should be 'object'");
}
var x54 = new Date(1969, 12, 1, 0); var x54 = new Date(1969, 12, 1, 0);
if (x54 === undefined) { assert.notSameValue(x54, undefined, 'The value of x54 is expected to not equal ``undefined``');
throw new Test262Error("#5.4: new Date(1969, 12, 1, 0) should not be undefined");
}
if (typeof new Date(1970, 0, 1, 0) !== "object") { assert.sameValue(
throw new Test262Error("#6.1: typeof new Date(1970, 0, 1, 0) should be 'object'"); typeof new Date(1970, 0, 1, 0),
} "object",
'The value of `typeof new Date(1970, 0, 1, 0)` is expected to be "object"'
);
if (new Date(1970, 0, 1, 0) === undefined) { assert.notSameValue(new Date(1970, 0, 1, 0), undefined, 'new Date(1970, 0, 1, 0) is expected to not equal ``undefined``');
throw new Test262Error("#6.2: new Date(1970, 0, 1, 0) should not be undefined");
}
var x63 = new Date(1970, 0, 1, 0); var x63 = new Date(1970, 0, 1, 0);
if (typeof x63 !== "object") { assert.sameValue(typeof x63, "object", 'The value of `typeof x63` is expected to be "object"');
throw new Test262Error("#6.3: typeof new Date(1970, 0, 1, 0) should be 'object'");
}
var x64 = new Date(1970, 0, 1, 0); var x64 = new Date(1970, 0, 1, 0);
if (x64 === undefined) { assert.notSameValue(x64, undefined, 'The value of x64 is expected to not equal ``undefined``');
throw new Test262Error("#6.4: new Date(1970, 0, 1, 0) should not be undefined");
}
if (typeof new Date(1999, 11, 31, 23) !== "object") { assert.sameValue(
throw new Test262Error("#7.1: typeof new Date(1999, 11, 31, 23) should be 'object'"); typeof new Date(1999, 11, 31, 23),
} "object",
'The value of `typeof new Date(1999, 11, 31, 23)` is expected to be "object"'
);
if (new Date(1999, 11, 31, 23) === undefined) { assert.notSameValue(
throw new Test262Error("#7.2: new Date(1999, 11, 31, 23) should not be undefined"); new Date(1999, 11, 31, 23),
} undefined,
'new Date(1999, 11, 31, 23) is expected to not equal ``undefined``'
);
var x73 = new Date(1999, 11, 31, 23); var x73 = new Date(1999, 11, 31, 23);
if (typeof x73 !== "object") { assert.sameValue(typeof x73, "object", 'The value of `typeof x73` is expected to be "object"');
throw new Test262Error("#7.3: typeof new Date(1999, 11, 31, 23) should be 'object'");
}
var x74 = new Date(1999, 11, 31, 23); var x74 = new Date(1999, 11, 31, 23);
if (x74 === undefined) { assert.notSameValue(x74, undefined, 'The value of x74 is expected to not equal ``undefined``');
throw new Test262Error("#7.4: new Date(1999, 11, 31, 23) should not be undefined");
}
if (typeof new Date(1999, 12, 1, 0) !== "object") { assert.sameValue(
throw new Test262Error("#8.1: typeof new Date(1999, 12, 1, 0) should be 'object'"); typeof new Date(1999, 12, 1, 0),
} "object",
'The value of `typeof new Date(1999, 12, 1, 0)` is expected to be "object"'
);
if (new Date(1999, 12, 1, 0) === undefined) { assert.notSameValue(
throw new Test262Error("#8.2: new Date(1999, 12, 1, 0) should not be undefined"); new Date(1999, 12, 1, 0),
} undefined,
'new Date(1999, 12, 1, 0) is expected to not equal ``undefined``'
);
var x83 = new Date(1999, 12, 1, 0); var x83 = new Date(1999, 12, 1, 0);
if (typeof x83 !== "object") { assert.sameValue(typeof x83, "object", 'The value of `typeof x83` is expected to be "object"');
throw new Test262Error("#8.3: typeof new Date(1999, 12, 1, 0) should be 'object'");
}
var x84 = new Date(1999, 12, 1, 0); var x84 = new Date(1999, 12, 1, 0);
if (x84 === undefined) { assert.notSameValue(x84, undefined, 'The value of x84 is expected to not equal ``undefined``');
throw new Test262Error("#8.4: new Date(1999, 12, 1, 0) should not be undefined");
}
if (typeof new Date(2000, 0, 1, 0) !== "object") { assert.sameValue(
throw new Test262Error("#9.1: typeof new Date(2000, 0, 1, 0) should be 'object'"); typeof new Date(2000, 0, 1, 0),
} "object",
'The value of `typeof new Date(2000, 0, 1, 0)` is expected to be "object"'
);
if (new Date(2000, 0, 1, 0) === undefined) { assert.notSameValue(new Date(2000, 0, 1, 0), undefined, 'new Date(2000, 0, 1, 0) is expected to not equal ``undefined``');
throw new Test262Error("#9.2: new Date(2000, 0, 1, 0) should not be undefined");
}
var x93 = new Date(2000, 0, 1, 0); var x93 = new Date(2000, 0, 1, 0);
if (typeof x93 !== "object") { assert.sameValue(typeof x93, "object", 'The value of `typeof x93` is expected to be "object"');
throw new Test262Error("#9.3: typeof new Date(2000, 0, 1, 0) should be 'object'");
}
var x94 = new Date(2000, 0, 1, 0); var x94 = new Date(2000, 0, 1, 0);
if (x94 === undefined) { assert.notSameValue(x94, undefined, 'The value of x94 is expected to not equal ``undefined``');
throw new Test262Error("#9.4: new Date(2000, 0, 1, 0) should not be undefined");
}
if (typeof new Date(2099, 11, 31, 23) !== "object") { assert.sameValue(
throw new Test262Error("#10.1: typeof new Date(2099, 11, 31, 23) should be 'object'"); typeof new Date(2099, 11, 31, 23),
} "object",
'The value of `typeof new Date(2099, 11, 31, 23)` is expected to be "object"'
);
if (new Date(2099, 11, 31, 23) === undefined) { assert.notSameValue(
throw new Test262Error("#10.2: new Date(2099, 11, 31, 23) should not be undefined"); new Date(2099, 11, 31, 23),
} undefined,
'new Date(2099, 11, 31, 23) is expected to not equal ``undefined``'
);
var x103 = new Date(2099, 11, 31, 23); var x103 = new Date(2099, 11, 31, 23);
if (typeof x103 !== "object") { assert.sameValue(typeof x103, "object", 'The value of `typeof x103` is expected to be "object"');
throw new Test262Error("#10.3: typeof new Date(2099, 11, 31, 23) should be 'object'");
}
var x104 = new Date(2099, 11, 31, 23); var x104 = new Date(2099, 11, 31, 23);
if (x104 === undefined) { assert.notSameValue(x104, undefined, 'The value of x104 is expected to not equal ``undefined``');
throw new Test262Error("#10.4: new Date(2099, 11, 31, 23) should not be undefined");
}
if (typeof new Date(2099, 12, 1, 0) !== "object") { assert.sameValue(
throw new Test262Error("#11.1: typeof new Date(2099, 12, 1, 0) should be 'object'"); typeof new Date(2099, 12, 1, 0),
} "object",
'The value of `typeof new Date(2099, 12, 1, 0)` is expected to be "object"'
);
if (new Date(2099, 12, 1, 0) === undefined) { assert.notSameValue(
throw new Test262Error("#11.2: new Date(2099, 12, 1, 0) should not be undefined"); new Date(2099, 12, 1, 0),
} undefined,
'new Date(2099, 12, 1, 0) is expected to not equal ``undefined``'
);
var x113 = new Date(2099, 12, 1, 0); var x113 = new Date(2099, 12, 1, 0);
if (typeof x113 !== "object") { assert.sameValue(typeof x113, "object", 'The value of `typeof x113` is expected to be "object"');
throw new Test262Error("#11.3: typeof new Date(2099, 12, 1, 0) should be 'object'");
}
var x114 = new Date(2099, 12, 1, 0); var x114 = new Date(2099, 12, 1, 0);
if (x114 === undefined) { assert.notSameValue(x114, undefined, 'The value of x114 is expected to not equal ``undefined``');
throw new Test262Error("#11.4: new Date(2099, 12, 1, 0) should not be undefined");
}
if (typeof new Date(2100, 0, 1, 0) !== "object") { assert.sameValue(
throw new Test262Error("#12.1: typeof new Date(2100, 0, 1, 0) should be 'object'"); typeof new Date(2100, 0, 1, 0),
} "object",
'The value of `typeof new Date(2100, 0, 1, 0)` is expected to be "object"'
);
if (new Date(2100, 0, 1, 0) === undefined) { assert.notSameValue(new Date(2100, 0, 1, 0), undefined, 'new Date(2100, 0, 1, 0) is expected to not equal ``undefined``');
throw new Test262Error("#12.2: new Date(2100, 0, 1, 0) should not be undefined");
}
var x123 = new Date(2100, 0, 1, 0); var x123 = new Date(2100, 0, 1, 0);
if (typeof x123 !== "object") { assert.sameValue(typeof x123, "object", 'The value of `typeof x123` is expected to be "object"');
throw new Test262Error("#12.3: typeof new Date(2100, 0, 1, 0) should be 'object'");
}
var x124 = new Date(2100, 0, 1, 0); var x124 = new Date(2100, 0, 1, 0);
if (x124 === undefined) { assert.notSameValue(x124, undefined, 'The value of x124 is expected to not equal ``undefined``');
throw new Test262Error("#12.4: new Date(2100, 0, 1, 0) should not be undefined");
}

View File

@ -8,219 +8,218 @@ info: |
esid: sec-date-year-month-date-hours-minutes-seconds-ms esid: sec-date-year-month-date-hours-minutes-seconds-ms
description: 5 arguments, (year, month, date, hours, minutes) description: 5 arguments, (year, month, date, hours, minutes)
---*/ ---*/
assert.sameValue(
typeof new Date(1899, 11, 31, 23, 59),
"object",
'The value of `typeof new Date(1899, 11, 31, 23, 59)` is expected to be "object"'
);
if (typeof new Date(1899, 11, 31, 23, 59) !== "object") { assert.notSameValue(
throw new Test262Error("#1.1: typeof new Date(1899, 11, 31, 23, 59) should be 'object'"); new Date(1899, 11, 31, 23, 59),
} undefined,
'new Date(1899, 11, 31, 23, 59) is expected to not equal ``undefined``'
if (new Date(1899, 11, 31, 23, 59) === undefined) { );
throw new Test262Error("#1.2: new Date(1899, 11, 31, 23, 59) should not be undefined");
}
var x13 = new Date(1899, 11, 31, 23, 59); var x13 = new Date(1899, 11, 31, 23, 59);
if (typeof x13 !== "object") { assert.sameValue(typeof x13, "object", 'The value of `typeof x13` is expected to be "object"');
throw new Test262Error("#1.3: typeof new Date(1899, 11, 31, 23, 59) should be 'object'");
}
var x14 = new Date(1899, 11, 31, 23, 59); var x14 = new Date(1899, 11, 31, 23, 59);
if (x14 === undefined) { assert.notSameValue(x14, undefined, 'The value of x14 is expected to not equal ``undefined``');
throw new Test262Error("#1.4: new Date(1899, 11, 31, 23, 59) should not be undefined");
}
if (typeof new Date(1899, 12, 1, 0, 0) !== "object") { assert.sameValue(
throw new Test262Error("#2.1: typeof new Date(1899, 12, 1, 0, 0) should be 'object'"); typeof new Date(1899, 12, 1, 0, 0),
} "object",
'The value of `typeof new Date(1899, 12, 1, 0, 0)` is expected to be "object"'
);
if (new Date(1899, 12, 1, 0, 0) === undefined) { assert.notSameValue(
throw new Test262Error("#2.2: new Date(1899, 12, 1, 0, 0) should not be undefined"); new Date(1899, 12, 1, 0, 0),
} undefined,
'new Date(1899, 12, 1, 0, 0) is expected to not equal ``undefined``'
);
var x23 = new Date(1899, 12, 1, 0, 0); var x23 = new Date(1899, 12, 1, 0, 0);
if (typeof x23 !== "object") { assert.sameValue(typeof x23, "object", 'The value of `typeof x23` is expected to be "object"');
throw new Test262Error("#2.3: typeof new Date(1899, 12, 1, 0, 0) should be 'object'");
}
var x24 = new Date(1899, 12, 1, 0, 0); var x24 = new Date(1899, 12, 1, 0, 0);
if (x24 === undefined) { assert.notSameValue(x24, undefined, 'The value of x24 is expected to not equal ``undefined``');
throw new Test262Error("#2.4: new Date(1899, 12, 1, 0, 0) should not be undefined");
}
if (typeof new Date(1900, 0, 1, 0, 0) !== "object") { assert.sameValue(
throw new Test262Error("#3.1: typeof new Date(1900, 0, 1, 0, 0) should be 'object'"); typeof new Date(1900, 0, 1, 0, 0),
} "object",
'The value of `typeof new Date(1900, 0, 1, 0, 0)` is expected to be "object"'
);
if (new Date(1900, 0, 1, 0, 0) === undefined) { assert.notSameValue(
throw new Test262Error("#3.2: new Date(1900, 0, 1, 0, 0) should not be undefined"); new Date(1900, 0, 1, 0, 0),
} undefined,
'new Date(1900, 0, 1, 0, 0) is expected to not equal ``undefined``'
);
var x33 = new Date(1900, 0, 1, 0, 0); var x33 = new Date(1900, 0, 1, 0, 0);
if (typeof x33 !== "object") { assert.sameValue(typeof x33, "object", 'The value of `typeof x33` is expected to be "object"');
throw new Test262Error("#3.3: typeof new Date(1900, 0, 1, 0, 0) should be 'object'");
}
var x34 = new Date(1900, 0, 1, 0, 0); var x34 = new Date(1900, 0, 1, 0, 0);
if (x34 === undefined) { assert.notSameValue(x34, undefined, 'The value of x34 is expected to not equal ``undefined``');
throw new Test262Error("#3.4: new Date(1900, 0, 1, 0, 0) should not be undefined");
}
if (typeof new Date(1969, 11, 31, 23, 59) !== "object") { assert.sameValue(
throw new Test262Error("#4.1: typeof new Date(1969, 11, 31, 23, 59) should be 'object'"); typeof new Date(1969, 11, 31, 23, 59),
} "object",
'The value of `typeof new Date(1969, 11, 31, 23, 59)` is expected to be "object"'
);
if (new Date(1969, 11, 31, 23, 59) === undefined) { assert.notSameValue(
throw new Test262Error("#4.2: new Date(1969, 11, 31, 23, 59) should not be undefined"); new Date(1969, 11, 31, 23, 59),
} undefined,
'new Date(1969, 11, 31, 23, 59) is expected to not equal ``undefined``'
);
var x43 = new Date(1969, 11, 31, 23, 59); var x43 = new Date(1969, 11, 31, 23, 59);
if (typeof x43 !== "object") { assert.sameValue(typeof x43, "object", 'The value of `typeof x43` is expected to be "object"');
throw new Test262Error("#4.3: typeof new Date(1969, 11, 31, 23, 59) should be 'object'");
}
var x44 = new Date(1969, 11, 31, 23, 59); var x44 = new Date(1969, 11, 31, 23, 59);
if (x44 === undefined) { assert.notSameValue(x44, undefined, 'The value of x44 is expected to not equal ``undefined``');
throw new Test262Error("#4.4: new Date(1969, 11, 31, 23, 59) should not be undefined");
}
if (typeof new Date(1969, 12, 1, 0, 0) !== "object") { assert.sameValue(
throw new Test262Error("#5.1: typeof new Date(1969, 12, 1, 0, 0) should be 'object'"); typeof new Date(1969, 12, 1, 0, 0),
} "object",
'The value of `typeof new Date(1969, 12, 1, 0, 0)` is expected to be "object"'
);
if (new Date(1969, 12, 1, 0, 0) === undefined) { assert.notSameValue(
throw new Test262Error("#5.2: new Date(1969, 12, 1, 0, 0) should not be undefined"); new Date(1969, 12, 1, 0, 0),
} undefined,
'new Date(1969, 12, 1, 0, 0) is expected to not equal ``undefined``'
);
var x53 = new Date(1969, 12, 1, 0, 0); var x53 = new Date(1969, 12, 1, 0, 0);
if (typeof x53 !== "object") { assert.sameValue(typeof x53, "object", 'The value of `typeof x53` is expected to be "object"');
throw new Test262Error("#5.3: typeof new Date(1969, 12, 1, 0, 0) should be 'object'");
}
var x54 = new Date(1969, 12, 1, 0, 0); var x54 = new Date(1969, 12, 1, 0, 0);
if (x54 === undefined) { assert.notSameValue(x54, undefined, 'The value of x54 is expected to not equal ``undefined``');
throw new Test262Error("#5.4: new Date(1969, 12, 1, 0, 0) should not be undefined");
}
if (typeof new Date(1970, 0, 1, 0, 0) !== "object") { assert.sameValue(
throw new Test262Error("#6.1: typeof new Date(1970, 0, 1, 0, 0) should be 'object'"); typeof new Date(1970, 0, 1, 0, 0),
} "object",
'The value of `typeof new Date(1970, 0, 1, 0, 0)` is expected to be "object"'
);
if (new Date(1970, 0, 1, 0, 0) === undefined) { assert.notSameValue(
throw new Test262Error("#6.2: new Date(1970, 0, 1, 0, 0) should not be undefined"); new Date(1970, 0, 1, 0, 0),
} undefined,
'new Date(1970, 0, 1, 0, 0) is expected to not equal ``undefined``'
);
var x63 = new Date(1970, 0, 1, 0, 0); var x63 = new Date(1970, 0, 1, 0, 0);
if (typeof x63 !== "object") { assert.sameValue(typeof x63, "object", 'The value of `typeof x63` is expected to be "object"');
throw new Test262Error("#6.3: typeof new Date(1970, 0, 1, 0, 0) should be 'object'");
}
var x64 = new Date(1970, 0, 1, 0, 0); var x64 = new Date(1970, 0, 1, 0, 0);
if (x64 === undefined) { assert.notSameValue(x64, undefined, 'The value of x64 is expected to not equal ``undefined``');
throw new Test262Error("#6.4: new Date(1970, 0, 1, 0, 0) should not be undefined");
}
if (typeof new Date(1999, 11, 31, 23, 59) !== "object") { assert.sameValue(
throw new Test262Error("#7.1: typeof new Date(1999, 11, 31, 23, 59) should be 'object'"); typeof new Date(1999, 11, 31, 23, 59),
} "object",
'The value of `typeof new Date(1999, 11, 31, 23, 59)` is expected to be "object"'
);
if (new Date(1999, 11, 31, 23, 59) === undefined) { assert.notSameValue(
throw new Test262Error("#7.2: new Date(1999, 11, 31, 23, 59) should not be undefined"); new Date(1999, 11, 31, 23, 59),
} undefined,
'new Date(1999, 11, 31, 23, 59) is expected to not equal ``undefined``'
);
var x73 = new Date(1999, 11, 31, 23, 59); var x73 = new Date(1999, 11, 31, 23, 59);
if (typeof x73 !== "object") { assert.sameValue(typeof x73, "object", 'The value of `typeof x73` is expected to be "object"');
throw new Test262Error("#7.3: typeof new Date(1999, 11, 31, 23, 59) should be 'object'");
}
var x74 = new Date(1999, 11, 31, 23, 59); var x74 = new Date(1999, 11, 31, 23, 59);
if (x74 === undefined) { assert.notSameValue(x74, undefined, 'The value of x74 is expected to not equal ``undefined``');
throw new Test262Error("#7.4: new Date(1999, 11, 31, 23, 59) should not be undefined");
}
if (typeof new Date(1999, 12, 1, 0, 0) !== "object") { assert.sameValue(
throw new Test262Error("#8.1: typeof new Date(1999, 12, 1, 0, 0) should be 'object'"); typeof new Date(1999, 12, 1, 0, 0),
} "object",
'The value of `typeof new Date(1999, 12, 1, 0, 0)` is expected to be "object"'
);
if (new Date(1999, 12, 1, 0, 0) === undefined) { assert.notSameValue(
throw new Test262Error("#8.2: new Date(1999, 12, 1, 0, 0) should not be undefined"); new Date(1999, 12, 1, 0, 0),
} undefined,
'new Date(1999, 12, 1, 0, 0) is expected to not equal ``undefined``'
);
var x83 = new Date(1999, 12, 1, 0, 0); var x83 = new Date(1999, 12, 1, 0, 0);
if (typeof x83 !== "object") { assert.sameValue(typeof x83, "object", 'The value of `typeof x83` is expected to be "object"');
throw new Test262Error("#8.3: typeof new Date(1999, 12, 1, 0, 0) should be 'object'");
}
var x84 = new Date(1999, 12, 1, 0, 0); var x84 = new Date(1999, 12, 1, 0, 0);
if (x84 === undefined) { assert.notSameValue(x84, undefined, 'The value of x84 is expected to not equal ``undefined``');
throw new Test262Error("#8.4: new Date(1999, 12, 1, 0, 0) should not be undefined");
}
if (typeof new Date(2000, 0, 1, 0, 0) !== "object") { assert.sameValue(
throw new Test262Error("#9.1: typeof new Date(2000, 0, 1, 0, 0) should be 'object'"); typeof new Date(2000, 0, 1, 0, 0),
} "object",
'The value of `typeof new Date(2000, 0, 1, 0, 0)` is expected to be "object"'
);
if (new Date(2000, 0, 1, 0, 0) === undefined) { assert.notSameValue(
throw new Test262Error("#9.2: new Date(2000, 0, 1, 0, 0) should not be undefined"); new Date(2000, 0, 1, 0, 0),
} undefined,
'new Date(2000, 0, 1, 0, 0) is expected to not equal ``undefined``'
);
var x93 = new Date(2000, 0, 1, 0, 0); var x93 = new Date(2000, 0, 1, 0, 0);
if (typeof x93 !== "object") { assert.sameValue(typeof x93, "object", 'The value of `typeof x93` is expected to be "object"');
throw new Test262Error("#9.3: typeof new Date(2000, 0, 1, 0, 0) should be 'object'");
}
var x94 = new Date(2000, 0, 1, 0, 0); var x94 = new Date(2000, 0, 1, 0, 0);
if (x94 === undefined) { assert.notSameValue(x94, undefined, 'The value of x94 is expected to not equal ``undefined``');
throw new Test262Error("#9.4: new Date(2000, 0, 1, 0, 0) should not be undefined");
}
if (typeof new Date(2099, 11, 31, 23, 59) !== "object") { assert.sameValue(
throw new Test262Error("#10.1: typeof new Date(2099, 11, 31, 23, 59) should be 'object'"); typeof new Date(2099, 11, 31, 23, 59),
} "object",
'The value of `typeof new Date(2099, 11, 31, 23, 59)` is expected to be "object"'
);
if (new Date(2099, 11, 31, 23, 59) === undefined) { assert.notSameValue(
throw new Test262Error("#10.2: new Date(2099, 11, 31, 23, 59) should not be undefined"); new Date(2099, 11, 31, 23, 59),
} undefined,
'new Date(2099, 11, 31, 23, 59) is expected to not equal ``undefined``'
);
var x103 = new Date(2099, 11, 31, 23, 59); var x103 = new Date(2099, 11, 31, 23, 59);
if (typeof x103 !== "object") { assert.sameValue(typeof x103, "object", 'The value of `typeof x103` is expected to be "object"');
throw new Test262Error("#10.3: typeof new Date(2099, 11, 31, 23, 59) should be 'object'");
}
var x104 = new Date(2099, 11, 31, 23, 59); var x104 = new Date(2099, 11, 31, 23, 59);
if (x104 === undefined) { assert.notSameValue(x104, undefined, 'The value of x104 is expected to not equal ``undefined``');
throw new Test262Error("#10.4: new Date(2099, 11, 31, 23, 59) should not be undefined");
}
if (typeof new Date(2099, 12, 1, 0, 0) !== "object") { assert.sameValue(
throw new Test262Error("#11.1: typeof new Date(2099, 12, 1, 0, 0) should be 'object'"); typeof new Date(2099, 12, 1, 0, 0),
} "object",
'The value of `typeof new Date(2099, 12, 1, 0, 0)` is expected to be "object"'
);
if (new Date(2099, 12, 1, 0, 0) === undefined) { assert.notSameValue(
throw new Test262Error("#11.2: new Date(2099, 12, 1, 0, 0) should not be undefined"); new Date(2099, 12, 1, 0, 0),
} undefined,
'new Date(2099, 12, 1, 0, 0) is expected to not equal ``undefined``'
);
var x113 = new Date(2099, 12, 1, 0, 0); var x113 = new Date(2099, 12, 1, 0, 0);
if (typeof x113 !== "object") { assert.sameValue(typeof x113, "object", 'The value of `typeof x113` is expected to be "object"');
throw new Test262Error("#11.3: typeof new Date(2099, 12, 1, 0, 0) should be 'object'");
}
var x114 = new Date(2099, 12, 1, 0, 0); var x114 = new Date(2099, 12, 1, 0, 0);
if (x114 === undefined) { assert.notSameValue(x114, undefined, 'The value of x114 is expected to not equal ``undefined``');
throw new Test262Error("#11.4: new Date(2099, 12, 1, 0, 0) should not be undefined");
}
if (typeof new Date(2100, 0, 1, 0, 0) !== "object") { assert.sameValue(
throw new Test262Error("#12.1: typeof new Date(2100, 0, 1, 0, 0) should be 'object'"); typeof new Date(2100, 0, 1, 0, 0),
} "object",
'The value of `typeof new Date(2100, 0, 1, 0, 0)` is expected to be "object"'
);
if (new Date(2100, 0, 1, 0, 0) === undefined) { assert.notSameValue(
throw new Test262Error("#12.2: new Date(2100, 0, 1, 0, 0) should not be undefined"); new Date(2100, 0, 1, 0, 0),
} undefined,
'new Date(2100, 0, 1, 0, 0) is expected to not equal ``undefined``'
);
var x123 = new Date(2100, 0, 1, 0, 0); var x123 = new Date(2100, 0, 1, 0, 0);
if (typeof x123 !== "object") { assert.sameValue(typeof x123, "object", 'The value of `typeof x123` is expected to be "object"');
throw new Test262Error("#12.3: typeof new Date(2100, 0, 1, 0, 0) should be 'object'");
}
var x124 = new Date(2100, 0, 1, 0, 0); var x124 = new Date(2100, 0, 1, 0, 0);
if (x124 === undefined) { assert.notSameValue(x124, undefined, 'The value of x124 is expected to not equal ``undefined``');
throw new Test262Error("#12.4: new Date(2100, 0, 1, 0, 0) should not be undefined");
}

View File

@ -8,219 +8,218 @@ info: |
esid: sec-date-year-month-date-hours-minutes-seconds-ms esid: sec-date-year-month-date-hours-minutes-seconds-ms
description: 6 arguments, (year, month, date, hours, minutes, seconds) description: 6 arguments, (year, month, date, hours, minutes, seconds)
---*/ ---*/
assert.sameValue(
typeof new Date(1899, 11, 31, 23, 59, 59),
"object",
'The value of `typeof new Date(1899, 11, 31, 23, 59, 59)` is expected to be "object"'
);
if (typeof new Date(1899, 11, 31, 23, 59, 59) !== "object") { assert.notSameValue(
throw new Test262Error("#1.1: typeof new Date(1899, 11, 31, 23, 59, 59) should be 'object'"); new Date(1899, 11, 31, 23, 59, 59),
} undefined,
'new Date(1899, 11, 31, 23, 59, 59) is expected to not equal ``undefined``'
if (new Date(1899, 11, 31, 23, 59, 59) === undefined) { );
throw new Test262Error("#1.2: new Date(1899, 11, 31, 23, 59, 59) should not be undefined");
}
var x13 = new Date(1899, 11, 31, 23, 59, 59); var x13 = new Date(1899, 11, 31, 23, 59, 59);
if (typeof x13 !== "object") { assert.sameValue(typeof x13, "object", 'The value of `typeof x13` is expected to be "object"');
throw new Test262Error("#1.3: typeof new Date(1899, 11, 31, 23, 59, 59) should be 'object'");
}
var x14 = new Date(1899, 11, 31, 23, 59, 59); var x14 = new Date(1899, 11, 31, 23, 59, 59);
if (x14 === undefined) { assert.notSameValue(x14, undefined, 'The value of x14 is expected to not equal ``undefined``');
throw new Test262Error("#1.4: new Date(1899, 11, 31, 23, 59, 59) should not be undefined");
}
if (typeof new Date(1899, 12, 1, 0, 0, 0) !== "object") { assert.sameValue(
throw new Test262Error("#2.1: typeof new Date(1899, 12, 1, 0, 0, 0) should be 'object'"); typeof new Date(1899, 12, 1, 0, 0, 0),
} "object",
'The value of `typeof new Date(1899, 12, 1, 0, 0, 0)` is expected to be "object"'
);
if (new Date(1899, 12, 1, 0, 0, 0) === undefined) { assert.notSameValue(
throw new Test262Error("#2.2: new Date(1899, 12, 1, 0, 0, 0) should not be undefined"); new Date(1899, 12, 1, 0, 0, 0),
} undefined,
'new Date(1899, 12, 1, 0, 0, 0) is expected to not equal ``undefined``'
);
var x23 = new Date(1899, 12, 1, 0, 0, 0); var x23 = new Date(1899, 12, 1, 0, 0, 0);
if (typeof x23 !== "object") { assert.sameValue(typeof x23, "object", 'The value of `typeof x23` is expected to be "object"');
throw new Test262Error("#2.3: typeof new Date(1899, 12, 1, 0, 0, 0) should be 'object'");
}
var x24 = new Date(1899, 12, 1, 0, 0, 0); var x24 = new Date(1899, 12, 1, 0, 0, 0);
if (x24 === undefined) { assert.notSameValue(x24, undefined, 'The value of x24 is expected to not equal ``undefined``');
throw new Test262Error("#2.4: new Date(1899, 12, 1, 0, 0, 0) should not be undefined");
}
if (typeof new Date(1900, 0, 1, 0, 0, 0) !== "object") { assert.sameValue(
throw new Test262Error("#3.1: typeof new Date(1900, 0, 1, 0, 0, 0) should be 'object'"); typeof new Date(1900, 0, 1, 0, 0, 0),
} "object",
'The value of `typeof new Date(1900, 0, 1, 0, 0, 0)` is expected to be "object"'
);
if (new Date(1900, 0, 1, 0, 0, 0) === undefined) { assert.notSameValue(
throw new Test262Error("#3.2: new Date(1900, 0, 1, 0, 0, 0) should not be undefined"); new Date(1900, 0, 1, 0, 0, 0),
} undefined,
'new Date(1900, 0, 1, 0, 0, 0) is expected to not equal ``undefined``'
);
var x33 = new Date(1900, 0, 1, 0, 0, 0); var x33 = new Date(1900, 0, 1, 0, 0, 0);
if (typeof x33 !== "object") { assert.sameValue(typeof x33, "object", 'The value of `typeof x33` is expected to be "object"');
throw new Test262Error("#3.3: typeof new Date(1900, 0, 1, 0, 0, 0) should be 'object'");
}
var x34 = new Date(1900, 0, 1, 0, 0, 0); var x34 = new Date(1900, 0, 1, 0, 0, 0);
if (x34 === undefined) { assert.notSameValue(x34, undefined, 'The value of x34 is expected to not equal ``undefined``');
throw new Test262Error("#3.4: new Date(1900, 0, 1, 0, 0, 0) should not be undefined");
}
if (typeof new Date(1969, 11, 31, 23, 59, 59) !== "object") { assert.sameValue(
throw new Test262Error("#4.1: typeof new Date(1969, 11, 31, 23, 59, 59) should be 'object'"); typeof new Date(1969, 11, 31, 23, 59, 59),
} "object",
'The value of `typeof new Date(1969, 11, 31, 23, 59, 59)` is expected to be "object"'
);
if (new Date(1969, 11, 31, 23, 59, 59) === undefined) { assert.notSameValue(
throw new Test262Error("#4.2: new Date(1969, 11, 31, 23, 59, 59) should not be undefined"); new Date(1969, 11, 31, 23, 59, 59),
} undefined,
'new Date(1969, 11, 31, 23, 59, 59) is expected to not equal ``undefined``'
);
var x43 = new Date(1969, 11, 31, 23, 59, 59); var x43 = new Date(1969, 11, 31, 23, 59, 59);
if (typeof x43 !== "object") { assert.sameValue(typeof x43, "object", 'The value of `typeof x43` is expected to be "object"');
throw new Test262Error("#4.3: typeof new Date(1969, 11, 31, 23, 59, 59) should be 'object'");
}
var x44 = new Date(1969, 11, 31, 23, 59, 59); var x44 = new Date(1969, 11, 31, 23, 59, 59);
if (x44 === undefined) { assert.notSameValue(x44, undefined, 'The value of x44 is expected to not equal ``undefined``');
throw new Test262Error("#4.4: new Date(1969, 11, 31, 23, 59, 59) should not be undefined");
}
if (typeof new Date(1969, 12, 1, 0, 0, 0) !== "object") { assert.sameValue(
throw new Test262Error("#5.1: typeof new Date(1969, 12, 1, 0, 0, 0) should be 'object'"); typeof new Date(1969, 12, 1, 0, 0, 0),
} "object",
'The value of `typeof new Date(1969, 12, 1, 0, 0, 0)` is expected to be "object"'
);
if (new Date(1969, 12, 1, 0, 0, 0) === undefined) { assert.notSameValue(
throw new Test262Error("#5.2: new Date(1969, 12, 1, 0, 0, 0) should not be undefined"); new Date(1969, 12, 1, 0, 0, 0),
} undefined,
'new Date(1969, 12, 1, 0, 0, 0) is expected to not equal ``undefined``'
);
var x53 = new Date(1969, 12, 1, 0, 0, 0); var x53 = new Date(1969, 12, 1, 0, 0, 0);
if (typeof x53 !== "object") { assert.sameValue(typeof x53, "object", 'The value of `typeof x53` is expected to be "object"');
throw new Test262Error("#5.3: typeof new Date(1969, 12, 1, 0, 0, 0) should be 'object'");
}
var x54 = new Date(1969, 12, 1, 0, 0, 0); var x54 = new Date(1969, 12, 1, 0, 0, 0);
if (x54 === undefined) { assert.notSameValue(x54, undefined, 'The value of x54 is expected to not equal ``undefined``');
throw new Test262Error("#5.4: new Date(1969, 12, 1, 0, 0, 0) should not be undefined");
}
if (typeof new Date(1970, 0, 1, 0, 0, 0) !== "object") { assert.sameValue(
throw new Test262Error("#6.1: typeof new Date(1970, 0, 1, 0, 0, 0) should be 'object'"); typeof new Date(1970, 0, 1, 0, 0, 0),
} "object",
'The value of `typeof new Date(1970, 0, 1, 0, 0, 0)` is expected to be "object"'
);
if (new Date(1970, 0, 1, 0, 0, 0) === undefined) { assert.notSameValue(
throw new Test262Error("#6.2: new Date(1970, 0, 1, 0, 0, 0) should not be undefined"); new Date(1970, 0, 1, 0, 0, 0),
} undefined,
'new Date(1970, 0, 1, 0, 0, 0) is expected to not equal ``undefined``'
);
var x63 = new Date(1970, 0, 1, 0, 0, 0); var x63 = new Date(1970, 0, 1, 0, 0, 0);
if (typeof x63 !== "object") { assert.sameValue(typeof x63, "object", 'The value of `typeof x63` is expected to be "object"');
throw new Test262Error("#6.3: typeof new Date(1970, 0, 1, 0, 0, 0) should be 'object'");
}
var x64 = new Date(1970, 0, 1, 0, 0, 0); var x64 = new Date(1970, 0, 1, 0, 0, 0);
if (x64 === undefined) { assert.notSameValue(x64, undefined, 'The value of x64 is expected to not equal ``undefined``');
throw new Test262Error("#6.4: new Date(1970, 0, 1, 0, 0, 0) should not be undefined");
}
if (typeof new Date(1999, 11, 31, 23, 59, 59) !== "object") { assert.sameValue(
throw new Test262Error("#7.1: typeof new Date(1999, 11, 31, 23, 59, 59) should be 'object'"); typeof new Date(1999, 11, 31, 23, 59, 59),
} "object",
'The value of `typeof new Date(1999, 11, 31, 23, 59, 59)` is expected to be "object"'
);
if (new Date(1999, 11, 31, 23, 59, 59) === undefined) { assert.notSameValue(
throw new Test262Error("#7.2: new Date(1999, 11, 31, 23, 59, 59) should not be undefined"); new Date(1999, 11, 31, 23, 59, 59),
} undefined,
'new Date(1999, 11, 31, 23, 59, 59) is expected to not equal ``undefined``'
);
var x73 = new Date(1999, 11, 31, 23, 59, 59); var x73 = new Date(1999, 11, 31, 23, 59, 59);
if (typeof x73 !== "object") { assert.sameValue(typeof x73, "object", 'The value of `typeof x73` is expected to be "object"');
throw new Test262Error("#7.3: typeof new Date(1999, 11, 31, 23, 59, 59) should be 'object'");
}
var x74 = new Date(1999, 11, 31, 23, 59, 59); var x74 = new Date(1999, 11, 31, 23, 59, 59);
if (x74 === undefined) { assert.notSameValue(x74, undefined, 'The value of x74 is expected to not equal ``undefined``');
throw new Test262Error("#7.4: new Date(1999, 11, 31, 23, 59, 59) should not be undefined");
}
if (typeof new Date(1999, 12, 1, 0, 0, 0) !== "object") { assert.sameValue(
throw new Test262Error("#8.1: typeof new Date(1999, 12, 1, 0, 0, 0) should be 'object'"); typeof new Date(1999, 12, 1, 0, 0, 0),
} "object",
'The value of `typeof new Date(1999, 12, 1, 0, 0, 0)` is expected to be "object"'
);
if (new Date(1999, 12, 1, 0, 0, 0) === undefined) { assert.notSameValue(
throw new Test262Error("#8.2: new Date(1999, 12, 1, 0, 0, 0) should not be undefined"); new Date(1999, 12, 1, 0, 0, 0),
} undefined,
'new Date(1999, 12, 1, 0, 0, 0) is expected to not equal ``undefined``'
);
var x83 = new Date(1999, 12, 1, 0, 0, 0); var x83 = new Date(1999, 12, 1, 0, 0, 0);
if (typeof x83 !== "object") { assert.sameValue(typeof x83, "object", 'The value of `typeof x83` is expected to be "object"');
throw new Test262Error("#8.3: typeof new Date(1999, 12, 1, 0, 0, 0) should be 'object'");
}
var x84 = new Date(1999, 12, 1, 0, 0, 0); var x84 = new Date(1999, 12, 1, 0, 0, 0);
if (x84 === undefined) { assert.notSameValue(x84, undefined, 'The value of x84 is expected to not equal ``undefined``');
throw new Test262Error("#8.4: new Date(1999, 12, 1, 0, 0, 0) should not be undefined");
}
if (typeof new Date(2000, 0, 1, 0, 0, 0) !== "object") { assert.sameValue(
throw new Test262Error("#9.1: typeof new Date(2000, 0, 1, 0, 0, 0) should be 'object'"); typeof new Date(2000, 0, 1, 0, 0, 0),
} "object",
'The value of `typeof new Date(2000, 0, 1, 0, 0, 0)` is expected to be "object"'
);
if (new Date(2000, 0, 1, 0, 0, 0) === undefined) { assert.notSameValue(
throw new Test262Error("#9.2: new Date(2000, 0, 1, 0, 0, 0) should not be undefined"); new Date(2000, 0, 1, 0, 0, 0),
} undefined,
'new Date(2000, 0, 1, 0, 0, 0) is expected to not equal ``undefined``'
);
var x93 = new Date(2000, 0, 1, 0, 0, 0); var x93 = new Date(2000, 0, 1, 0, 0, 0);
if (typeof x93 !== "object") { assert.sameValue(typeof x93, "object", 'The value of `typeof x93` is expected to be "object"');
throw new Test262Error("#9.3: typeof new Date(2000, 0, 1, 0, 0, 0) should be 'object'");
}
var x94 = new Date(2000, 0, 1, 0, 0, 0); var x94 = new Date(2000, 0, 1, 0, 0, 0);
if (x94 === undefined) { assert.notSameValue(x94, undefined, 'The value of x94 is expected to not equal ``undefined``');
throw new Test262Error("#9.4: new Date(2000, 0, 1, 0, 0, 0) should not be undefined");
}
if (typeof new Date(2099, 11, 31, 23, 59, 59) !== "object") { assert.sameValue(
throw new Test262Error("#10.1: typeof new Date(2099, 11, 31, 23, 59, 59) should be 'object'"); typeof new Date(2099, 11, 31, 23, 59, 59),
} "object",
'The value of `typeof new Date(2099, 11, 31, 23, 59, 59)` is expected to be "object"'
);
if (new Date(2099, 11, 31, 23, 59, 59) === undefined) { assert.notSameValue(
throw new Test262Error("#10.2: new Date(2099, 11, 31, 23, 59, 59) should not be undefined"); new Date(2099, 11, 31, 23, 59, 59),
} undefined,
'new Date(2099, 11, 31, 23, 59, 59) is expected to not equal ``undefined``'
);
var x103 = new Date(2099, 11, 31, 23, 59, 59); var x103 = new Date(2099, 11, 31, 23, 59, 59);
if (typeof x103 !== "object") { assert.sameValue(typeof x103, "object", 'The value of `typeof x103` is expected to be "object"');
throw new Test262Error("#10.3: typeof new Date(2099, 11, 31, 23, 59, 59) should be 'object'");
}
var x104 = new Date(2099, 11, 31, 23, 59, 59); var x104 = new Date(2099, 11, 31, 23, 59, 59);
if (x104 === undefined) { assert.notSameValue(x104, undefined, 'The value of x104 is expected to not equal ``undefined``');
throw new Test262Error("#10.4: new Date(2099, 11, 31, 23, 59, 59) should not be undefined");
}
if (typeof new Date(2099, 12, 1, 0, 0, 0) !== "object") { assert.sameValue(
throw new Test262Error("#11.1: typeof new Date(2099, 12, 1, 0, 0, 0) should be 'object'"); typeof new Date(2099, 12, 1, 0, 0, 0),
} "object",
'The value of `typeof new Date(2099, 12, 1, 0, 0, 0)` is expected to be "object"'
);
if (new Date(2099, 12, 1, 0, 0, 0) === undefined) { assert.notSameValue(
throw new Test262Error("#11.2: new Date(2099, 12, 1, 0, 0, 0) should not be undefined"); new Date(2099, 12, 1, 0, 0, 0),
} undefined,
'new Date(2099, 12, 1, 0, 0, 0) is expected to not equal ``undefined``'
);
var x113 = new Date(2099, 12, 1, 0, 0, 0); var x113 = new Date(2099, 12, 1, 0, 0, 0);
if (typeof x113 !== "object") { assert.sameValue(typeof x113, "object", 'The value of `typeof x113` is expected to be "object"');
throw new Test262Error("#11.3: typeof new Date(2099, 12, 1, 0, 0, 0) should be 'object'");
}
var x114 = new Date(2099, 12, 1, 0, 0, 0); var x114 = new Date(2099, 12, 1, 0, 0, 0);
if (x114 === undefined) { assert.notSameValue(x114, undefined, 'The value of x114 is expected to not equal ``undefined``');
throw new Test262Error("#11.4: new Date(2099, 12, 1, 0, 0, 0) should not be undefined");
}
if (typeof new Date(2100, 0, 1, 0, 0, 0) !== "object") { assert.sameValue(
throw new Test262Error("#12.1: typeof new Date(2100, 0, 1, 0, 0, 0) should be 'object'"); typeof new Date(2100, 0, 1, 0, 0, 0),
} "object",
'The value of `typeof new Date(2100, 0, 1, 0, 0, 0)` is expected to be "object"'
);
if (new Date(2100, 0, 1, 0, 0, 0) === undefined) { assert.notSameValue(
throw new Test262Error("#12.2: new Date(2100, 0, 1, 0, 0, 0) should not be undefined"); new Date(2100, 0, 1, 0, 0, 0),
} undefined,
'new Date(2100, 0, 1, 0, 0, 0) is expected to not equal ``undefined``'
);
var x123 = new Date(2100, 0, 1, 0, 0, 0); var x123 = new Date(2100, 0, 1, 0, 0, 0);
if (typeof x123 !== "object") { assert.sameValue(typeof x123, "object", 'The value of `typeof x123` is expected to be "object"');
throw new Test262Error("#12.3: typeof new Date(2100, 0, 1, 0, 0, 0) should be 'object'");
}
var x124 = new Date(2100, 0, 1, 0, 0, 0); var x124 = new Date(2100, 0, 1, 0, 0, 0);
if (x124 === undefined) { assert.notSameValue(x124, undefined, 'The value of x124 is expected to not equal ``undefined``');
throw new Test262Error("#12.4: new Date(2100, 0, 1, 0, 0, 0) should not be undefined");
}

View File

@ -8,219 +8,218 @@ info: |
esid: sec-date-year-month-date-hours-minutes-seconds-ms esid: sec-date-year-month-date-hours-minutes-seconds-ms
description: 7 arguments, (year, month, date, hours, minutes, seconds, ms) description: 7 arguments, (year, month, date, hours, minutes, seconds, ms)
---*/ ---*/
assert.sameValue(
typeof new Date(1899, 11, 31, 23, 59, 59, 999),
"object",
'The value of `typeof new Date(1899, 11, 31, 23, 59, 59, 999)` is expected to be "object"'
);
if (typeof new Date(1899, 11, 31, 23, 59, 59, 999) !== "object") { assert.notSameValue(
throw new Test262Error("#1.1: typeof new Date(1899, 11, 31, 23, 59, 59, 999) should be 'object'"); new Date(1899, 11, 31, 23, 59, 59, 999),
} undefined,
'new Date(1899, 11, 31, 23, 59, 59, 999) is expected to not equal ``undefined``'
if (new Date(1899, 11, 31, 23, 59, 59, 999) === undefined) { );
throw new Test262Error("#1.2: new Date(1899, 11, 31, 23, 59, 59, 999) should not be undefined");
}
var x13 = new Date(1899, 11, 31, 23, 59, 59, 999); var x13 = new Date(1899, 11, 31, 23, 59, 59, 999);
if (typeof x13 !== "object") { assert.sameValue(typeof x13, "object", 'The value of `typeof x13` is expected to be "object"');
throw new Test262Error("#1.3: typeof new Date(1899, 11, 31, 23, 59, 59, 999) should be 'object'");
}
var x14 = new Date(1899, 11, 31, 23, 59, 59, 999); var x14 = new Date(1899, 11, 31, 23, 59, 59, 999);
if (x14 === undefined) { assert.notSameValue(x14, undefined, 'The value of x14 is expected to not equal ``undefined``');
throw new Test262Error("#1.4: new Date(1899, 11, 31, 23, 59, 59, 999) should not be undefined");
}
if (typeof new Date(1899, 12, 1, 0, 0, 0, 0) !== "object") { assert.sameValue(
throw new Test262Error("#2.1: typeof new Date(1899, 12, 1, 0, 0, 0, 0) should be 'object'"); typeof new Date(1899, 12, 1, 0, 0, 0, 0),
} "object",
'The value of `typeof new Date(1899, 12, 1, 0, 0, 0, 0)` is expected to be "object"'
);
if (new Date(1899, 12, 1, 0, 0, 0, 0) === undefined) { assert.notSameValue(
throw new Test262Error("#2.2: new Date(1899, 12, 1, 0, 0, 0, 0) should not be undefined"); new Date(1899, 12, 1, 0, 0, 0, 0),
} undefined,
'new Date(1899, 12, 1, 0, 0, 0, 0) is expected to not equal ``undefined``'
);
var x23 = new Date(1899, 12, 1, 0, 0, 0, 0); var x23 = new Date(1899, 12, 1, 0, 0, 0, 0);
if (typeof x23 !== "object") { assert.sameValue(typeof x23, "object", 'The value of `typeof x23` is expected to be "object"');
throw new Test262Error("#2.3: typeof new Date(1899, 12, 1, 0, 0, 0, 0) should be 'object'");
}
var x24 = new Date(1899, 12, 1, 0, 0, 0, 0); var x24 = new Date(1899, 12, 1, 0, 0, 0, 0);
if (x24 === undefined) { assert.notSameValue(x24, undefined, 'The value of x24 is expected to not equal ``undefined``');
throw new Test262Error("#2.4: new Date(1899, 12, 1, 0, 0, 0, 0) should not be undefined");
}
if (typeof new Date(1900, 0, 1, 0, 0, 0, 0) !== "object") { assert.sameValue(
throw new Test262Error("#3.1: typeof new Date(1900, 0, 1, 0, 0, 0, 0) should be 'object'"); typeof new Date(1900, 0, 1, 0, 0, 0, 0),
} "object",
'The value of `typeof new Date(1900, 0, 1, 0, 0, 0, 0)` is expected to be "object"'
);
if (new Date(1900, 0, 1, 0, 0, 0, 0) === undefined) { assert.notSameValue(
throw new Test262Error("#3.2: new Date(1900, 0, 1, 0, 0, 0, 0) should not be undefined"); new Date(1900, 0, 1, 0, 0, 0, 0),
} undefined,
'new Date(1900, 0, 1, 0, 0, 0, 0) is expected to not equal ``undefined``'
);
var x33 = new Date(1900, 0, 1, 0, 0, 0, 0); var x33 = new Date(1900, 0, 1, 0, 0, 0, 0);
if (typeof x33 !== "object") { assert.sameValue(typeof x33, "object", 'The value of `typeof x33` is expected to be "object"');
throw new Test262Error("#3.3: typeof new Date(1900, 0, 1, 0, 0, 0, 0) should be 'object'");
}
var x34 = new Date(1900, 0, 1, 0, 0, 0, 0); var x34 = new Date(1900, 0, 1, 0, 0, 0, 0);
if (x34 === undefined) { assert.notSameValue(x34, undefined, 'The value of x34 is expected to not equal ``undefined``');
throw new Test262Error("#3.4: new Date(1900, 0, 1, 0, 0, 0, 0) should not be undefined");
}
if (typeof new Date(1969, 11, 31, 23, 59, 59, 999) !== "object") { assert.sameValue(
throw new Test262Error("#4.1: typeof new Date(1969, 11, 31, 23, 59, 59, 999) should be 'object'"); typeof new Date(1969, 11, 31, 23, 59, 59, 999),
} "object",
'The value of `typeof new Date(1969, 11, 31, 23, 59, 59, 999)` is expected to be "object"'
);
if (new Date(1969, 11, 31, 23, 59, 59, 999) === undefined) { assert.notSameValue(
throw new Test262Error("#4.2: new Date(1969, 11, 31, 23, 59, 59, 999) should not be undefined"); new Date(1969, 11, 31, 23, 59, 59, 999),
} undefined,
'new Date(1969, 11, 31, 23, 59, 59, 999) is expected to not equal ``undefined``'
);
var x43 = new Date(1969, 11, 31, 23, 59, 59, 999); var x43 = new Date(1969, 11, 31, 23, 59, 59, 999);
if (typeof x43 !== "object") { assert.sameValue(typeof x43, "object", 'The value of `typeof x43` is expected to be "object"');
throw new Test262Error("#4.3: typeof new Date(1969, 11, 31, 23, 59, 59, 999) should be 'object'");
}
var x44 = new Date(1969, 11, 31, 23, 59, 59, 999); var x44 = new Date(1969, 11, 31, 23, 59, 59, 999);
if (x44 === undefined) { assert.notSameValue(x44, undefined, 'The value of x44 is expected to not equal ``undefined``');
throw new Test262Error("#4.4: new Date(1969, 11, 31, 23, 59, 59, 999) should not be undefined");
}
if (typeof new Date(1969, 12, 1, 0, 0, 0, 0) !== "object") { assert.sameValue(
throw new Test262Error("#5.1: typeof new Date(1969, 12, 1, 0, 0, 0, 0) should be 'object'"); typeof new Date(1969, 12, 1, 0, 0, 0, 0),
} "object",
'The value of `typeof new Date(1969, 12, 1, 0, 0, 0, 0)` is expected to be "object"'
);
if (new Date(1969, 12, 1, 0, 0, 0, 0) === undefined) { assert.notSameValue(
throw new Test262Error("#5.2: new Date(1969, 12, 1, 0, 0, 0, 0) should not be undefined"); new Date(1969, 12, 1, 0, 0, 0, 0),
} undefined,
'new Date(1969, 12, 1, 0, 0, 0, 0) is expected to not equal ``undefined``'
);
var x53 = new Date(1969, 12, 1, 0, 0, 0, 0); var x53 = new Date(1969, 12, 1, 0, 0, 0, 0);
if (typeof x53 !== "object") { assert.sameValue(typeof x53, "object", 'The value of `typeof x53` is expected to be "object"');
throw new Test262Error("#5.3: typeof new Date(1969, 12, 1, 0, 0, 0, 0) should be 'object'");
}
var x54 = new Date(1969, 12, 1, 0, 0, 0, 0); var x54 = new Date(1969, 12, 1, 0, 0, 0, 0);
if (x54 === undefined) { assert.notSameValue(x54, undefined, 'The value of x54 is expected to not equal ``undefined``');
throw new Test262Error("#5.4: new Date(1969, 12, 1, 0, 0, 0, 0) should not be undefined");
}
if (typeof new Date(1970, 0, 1, 0, 0, 0, 0) !== "object") { assert.sameValue(
throw new Test262Error("#6.1: typeof new Date(1970, 0, 1, 0, 0, 0, 0) should be 'object'"); typeof new Date(1970, 0, 1, 0, 0, 0, 0),
} "object",
'The value of `typeof new Date(1970, 0, 1, 0, 0, 0, 0)` is expected to be "object"'
);
if (new Date(1970, 0, 1, 0, 0, 0, 0) === undefined) { assert.notSameValue(
throw new Test262Error("#6.2: new Date(1970, 0, 1, 0, 0, 0, 0) should not be undefined"); new Date(1970, 0, 1, 0, 0, 0, 0),
} undefined,
'new Date(1970, 0, 1, 0, 0, 0, 0) is expected to not equal ``undefined``'
);
var x63 = new Date(1970, 0, 1, 0, 0, 0, 0); var x63 = new Date(1970, 0, 1, 0, 0, 0, 0);
if (typeof x63 !== "object") { assert.sameValue(typeof x63, "object", 'The value of `typeof x63` is expected to be "object"');
throw new Test262Error("#6.3: typeof new Date(1970, 0, 1, 0, 0, 0, 0) should be 'object'");
}
var x64 = new Date(1970, 0, 1, 0, 0, 0, 0); var x64 = new Date(1970, 0, 1, 0, 0, 0, 0);
if (x64 === undefined) { assert.notSameValue(x64, undefined, 'The value of x64 is expected to not equal ``undefined``');
throw new Test262Error("#6.4: new Date(1970, 0, 1, 0, 0, 0, 0) should not be undefined");
}
if (typeof new Date(1999, 11, 31, 23, 59, 59, 999) !== "object") { assert.sameValue(
throw new Test262Error("#7.1: typeof new Date(1999, 11, 31, 23, 59, 59, 999) should be 'object'"); typeof new Date(1999, 11, 31, 23, 59, 59, 999),
} "object",
'The value of `typeof new Date(1999, 11, 31, 23, 59, 59, 999)` is expected to be "object"'
);
if (new Date(1999, 11, 31, 23, 59, 59, 999) === undefined) { assert.notSameValue(
throw new Test262Error("#7.2: new Date(1999, 11, 31, 23, 59, 59, 999) should not be undefined"); new Date(1999, 11, 31, 23, 59, 59, 999),
} undefined,
'new Date(1999, 11, 31, 23, 59, 59, 999) is expected to not equal ``undefined``'
);
var x73 = new Date(1999, 11, 31, 23, 59, 59, 999); var x73 = new Date(1999, 11, 31, 23, 59, 59, 999);
if (typeof x73 !== "object") { assert.sameValue(typeof x73, "object", 'The value of `typeof x73` is expected to be "object"');
throw new Test262Error("#7.3: typeof new Date(1999, 11, 31, 23, 59, 59, 999) should be 'object'");
}
var x74 = new Date(1999, 11, 31, 23, 59, 59, 999); var x74 = new Date(1999, 11, 31, 23, 59, 59, 999);
if (x74 === undefined) { assert.notSameValue(x74, undefined, 'The value of x74 is expected to not equal ``undefined``');
throw new Test262Error("#7.4: new Date(1999, 11, 31, 23, 59, 59, 999) should not be undefined");
}
if (typeof new Date(1999, 12, 1, 0, 0, 0, 0) !== "object") { assert.sameValue(
throw new Test262Error("#8.1: typeof new Date(1999, 12, 1, 0, 0, 0, 0) should be 'object'"); typeof new Date(1999, 12, 1, 0, 0, 0, 0),
} "object",
'The value of `typeof new Date(1999, 12, 1, 0, 0, 0, 0)` is expected to be "object"'
);
if (new Date(1999, 12, 1, 0, 0, 0, 0) === undefined) { assert.notSameValue(
throw new Test262Error("#8.2: new Date(1999, 12, 1, 0, 0, 0, 0) should not be undefined"); new Date(1999, 12, 1, 0, 0, 0, 0),
} undefined,
'new Date(1999, 12, 1, 0, 0, 0, 0) is expected to not equal ``undefined``'
);
var x83 = new Date(1999, 12, 1, 0, 0, 0, 0); var x83 = new Date(1999, 12, 1, 0, 0, 0, 0);
if (typeof x83 !== "object") { assert.sameValue(typeof x83, "object", 'The value of `typeof x83` is expected to be "object"');
throw new Test262Error("#8.3: typeof new Date(1999, 12, 1, 0, 0, 0, 0) should be 'object'");
}
var x84 = new Date(1999, 12, 1, 0, 0, 0, 0); var x84 = new Date(1999, 12, 1, 0, 0, 0, 0);
if (x84 === undefined) { assert.notSameValue(x84, undefined, 'The value of x84 is expected to not equal ``undefined``');
throw new Test262Error("#8.4: new Date(1999, 12, 1, 0, 0, 0, 0) should not be undefined");
}
if (typeof new Date(2000, 0, 1, 0, 0, 0, 0) !== "object") { assert.sameValue(
throw new Test262Error("#9.1: typeof new Date(2000, 0, 1, 0, 0, 0, 0) should be 'object'"); typeof new Date(2000, 0, 1, 0, 0, 0, 0),
} "object",
'The value of `typeof new Date(2000, 0, 1, 0, 0, 0, 0)` is expected to be "object"'
);
if (new Date(2000, 0, 1, 0, 0, 0, 0) === undefined) { assert.notSameValue(
throw new Test262Error("#9.2: new Date(2000, 0, 1, 0, 0, 0, 0) should not be undefined"); new Date(2000, 0, 1, 0, 0, 0, 0),
} undefined,
'new Date(2000, 0, 1, 0, 0, 0, 0) is expected to not equal ``undefined``'
);
var x93 = new Date(2000, 0, 1, 0, 0, 0, 0); var x93 = new Date(2000, 0, 1, 0, 0, 0, 0);
if (typeof x93 !== "object") { assert.sameValue(typeof x93, "object", 'The value of `typeof x93` is expected to be "object"');
throw new Test262Error("#9.3: typeof new Date(2000, 0, 1, 0, 0, 0, 0) should be 'object'");
}
var x94 = new Date(2000, 0, 1, 0, 0, 0, 0); var x94 = new Date(2000, 0, 1, 0, 0, 0, 0);
if (x94 === undefined) { assert.notSameValue(x94, undefined, 'The value of x94 is expected to not equal ``undefined``');
throw new Test262Error("#9.4: new Date(2000, 0, 1, 0, 0, 0, 0) should not be undefined");
}
if (typeof new Date(2099, 11, 31, 23, 59, 59, 999) !== "object") { assert.sameValue(
throw new Test262Error("#10.1: typeof new Date(2099, 11, 31, 23, 59, 59, 999) should be 'object'"); typeof new Date(2099, 11, 31, 23, 59, 59, 999),
} "object",
'The value of `typeof new Date(2099, 11, 31, 23, 59, 59, 999)` is expected to be "object"'
);
if (new Date(2099, 11, 31, 23, 59, 59, 999) === undefined) { assert.notSameValue(
throw new Test262Error("#10.2: new Date(2099, 11, 31, 23, 59, 59, 999) should not be undefined"); new Date(2099, 11, 31, 23, 59, 59, 999),
} undefined,
'new Date(2099, 11, 31, 23, 59, 59, 999) is expected to not equal ``undefined``'
);
var x103 = new Date(2099, 11, 31, 23, 59, 59, 999); var x103 = new Date(2099, 11, 31, 23, 59, 59, 999);
if (typeof x103 !== "object") { assert.sameValue(typeof x103, "object", 'The value of `typeof x103` is expected to be "object"');
throw new Test262Error("#10.3: typeof new Date(2099, 11, 31, 23, 59, 59, 999) should be 'object'");
}
var x104 = new Date(2099, 11, 31, 23, 59, 59, 999); var x104 = new Date(2099, 11, 31, 23, 59, 59, 999);
if (x104 === undefined) { assert.notSameValue(x104, undefined, 'The value of x104 is expected to not equal ``undefined``');
throw new Test262Error("#10.4: new Date(2099, 11, 31, 23, 59, 59, 999) should not be undefined");
}
if (typeof new Date(2099, 12, 1, 0, 0, 0, 0) !== "object") { assert.sameValue(
throw new Test262Error("#11.1: typeof new Date(2099, 12, 1, 0, 0, 0, 0) should be 'object'"); typeof new Date(2099, 12, 1, 0, 0, 0, 0),
} "object",
'The value of `typeof new Date(2099, 12, 1, 0, 0, 0, 0)` is expected to be "object"'
);
if (new Date(2099, 12, 1, 0, 0, 0, 0) === undefined) { assert.notSameValue(
throw new Test262Error("#11.2: new Date(2099, 12, 1, 0, 0, 0, 0) should not be undefined"); new Date(2099, 12, 1, 0, 0, 0, 0),
} undefined,
'new Date(2099, 12, 1, 0, 0, 0, 0) is expected to not equal ``undefined``'
);
var x113 = new Date(2099, 12, 1, 0, 0, 0, 0); var x113 = new Date(2099, 12, 1, 0, 0, 0, 0);
if (typeof x113 !== "object") { assert.sameValue(typeof x113, "object", 'The value of `typeof x113` is expected to be "object"');
throw new Test262Error("#11.3: typeof new Date(2099, 12, 1, 0, 0, 0, 0) should be 'object'");
}
var x114 = new Date(2099, 12, 1, 0, 0, 0, 0); var x114 = new Date(2099, 12, 1, 0, 0, 0, 0);
if (x114 === undefined) { assert.notSameValue(x114, undefined, 'The value of x114 is expected to not equal ``undefined``');
throw new Test262Error("#11.4: new Date(2099, 12, 1, 0, 0, 0, 0) should not be undefined");
}
if (typeof new Date(2100, 0, 1, 0, 0, 0, 0) !== "object") { assert.sameValue(
throw new Test262Error("#12.1: typeof new Date(2100, 0, 1, 0, 0, 0, 0) should be 'object'"); typeof new Date(2100, 0, 1, 0, 0, 0, 0),
} "object",
'The value of `typeof new Date(2100, 0, 1, 0, 0, 0, 0)` is expected to be "object"'
);
if (new Date(2100, 0, 1, 0, 0, 0, 0) === undefined) { assert.notSameValue(
throw new Test262Error("#12.2: new Date(2100, 0, 1, 0, 0, 0, 0) should not be undefined"); new Date(2100, 0, 1, 0, 0, 0, 0),
} undefined,
'new Date(2100, 0, 1, 0, 0, 0, 0) is expected to not equal ``undefined``'
);
var x123 = new Date(2100, 0, 1, 0, 0, 0, 0); var x123 = new Date(2100, 0, 1, 0, 0, 0, 0);
if (typeof x123 !== "object") { assert.sameValue(typeof x123, "object", 'The value of `typeof x123` is expected to be "object"');
throw new Test262Error("#12.3: typeof new Date(2100, 0, 1, 0, 0, 0, 0) should be 'object'");
}
var x124 = new Date(2100, 0, 1, 0, 0, 0, 0); var x124 = new Date(2100, 0, 1, 0, 0, 0, 0);
if (x124 === undefined) { assert.notSameValue(x124, undefined, 'The value of x124 is expected to not equal ``undefined``');
throw new Test262Error("#12.4: new Date(2100, 0, 1, 0, 0, 0, 0) should not be undefined");
}

View File

@ -11,181 +11,229 @@ description: 2 arguments, (year, month)
---*/ ---*/
var x11 = new Date(1899, 11); var x11 = new Date(1899, 11);
if (typeof x11.constructor.prototype !== "object") {
throw new Test262Error("#1.1: typeof x11.constructor.prototype === 'object'"); assert.sameValue(
} typeof x11.constructor.prototype,
"object",
'The value of `typeof x11.constructor.prototype` is expected to be "object"'
);
var x12 = new Date(1899, 11); var x12 = new Date(1899, 11);
if (!Date.prototype.isPrototypeOf(x12)) { assert(Date.prototype.isPrototypeOf(x12), 'Date.prototype.isPrototypeOf(x12) must return true');
throw new Test262Error('#1.2: Date.prototype.isPrototypeOf(x12)');
}
var x13 = new Date(1899, 11); var x13 = new Date(1899, 11);
if (Date.prototype !== x13.constructor.prototype) {
throw new Test262Error("#1.3: Date.prototype === x13.constructor.prototype"); assert.sameValue(
} Date.prototype,
x13.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x13.constructor.prototype'
);
var x21 = new Date(1899, 12); var x21 = new Date(1899, 12);
if (typeof x21.constructor.prototype !== "object") {
throw new Test262Error("#2.1: typeof x11.constructor.prototype === 'object'"); assert.sameValue(
} typeof x21.constructor.prototype,
"object",
'The value of `typeof x21.constructor.prototype` is expected to be "object"'
);
var x22 = new Date(1899, 12); var x22 = new Date(1899, 12);
if (!Date.prototype.isPrototypeOf(x22)) { assert(Date.prototype.isPrototypeOf(x22), 'Date.prototype.isPrototypeOf(x22) must return true');
throw new Test262Error('#2.2: Date.prototype.isPrototypeOf(x22)');
}
var x23 = new Date(1899, 12); var x23 = new Date(1899, 12);
if (Date.prototype !== x23.constructor.prototype) {
throw new Test262Error("#2.3: Date.prototype === x23.constructor.prototype"); assert.sameValue(
} Date.prototype,
x23.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x23.constructor.prototype'
);
var x31 = new Date(1900, 0); var x31 = new Date(1900, 0);
if (typeof x31.constructor.prototype !== "object") {
throw new Test262Error("#3.1: typeof x31.constructor.prototype === 'object'"); assert.sameValue(
} typeof x31.constructor.prototype,
"object",
'The value of `typeof x31.constructor.prototype` is expected to be "object"'
);
var x32 = new Date(1900, 0); var x32 = new Date(1900, 0);
if (!Date.prototype.isPrototypeOf(x32)) { assert(Date.prototype.isPrototypeOf(x32), 'Date.prototype.isPrototypeOf(x32) must return true');
throw new Test262Error('#3.2: Date.prototype.isPrototypeOf(x32)');
}
var x33 = new Date(1900, 0); var x33 = new Date(1900, 0);
if (Date.prototype !== x33.constructor.prototype) {
throw new Test262Error("#3.3: Date.prototype === x33.constructor.prototype"); assert.sameValue(
} Date.prototype,
x33.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x33.constructor.prototype'
);
var x41 = new Date(1969, 11); var x41 = new Date(1969, 11);
if (typeof x41.constructor.prototype !== "object") {
throw new Test262Error("#4.1: typeof x41.constructor.prototype === 'object'"); assert.sameValue(
} typeof x41.constructor.prototype,
"object",
'The value of `typeof x41.constructor.prototype` is expected to be "object"'
);
var x42 = new Date(1969, 11); var x42 = new Date(1969, 11);
if (!Date.prototype.isPrototypeOf(x42)) { assert(Date.prototype.isPrototypeOf(x42), 'Date.prototype.isPrototypeOf(x42) must return true');
throw new Test262Error('#4.2: Date.prototype.isPrototypeOf(x42)');
}
var x43 = new Date(1969, 11); var x43 = new Date(1969, 11);
if (Date.prototype !== x43.constructor.prototype) {
throw new Test262Error("#4.3: Date.prototype === x43.constructor.prototype"); assert.sameValue(
} Date.prototype,
x43.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x43.constructor.prototype'
);
var x51 = new Date(1969, 12); var x51 = new Date(1969, 12);
if (typeof x51.constructor.prototype !== "object") {
throw new Test262Error("#5.1: typeof x51.constructor.prototype === 'object'"); assert.sameValue(
} typeof x51.constructor.prototype,
"object",
'The value of `typeof x51.constructor.prototype` is expected to be "object"'
);
var x52 = new Date(1969, 12); var x52 = new Date(1969, 12);
if (!Date.prototype.isPrototypeOf(x52)) { assert(Date.prototype.isPrototypeOf(x52), 'Date.prototype.isPrototypeOf(x52) must return true');
throw new Test262Error('#5.2: Date.prototype.isPrototypeOf(x52)');
}
var x53 = new Date(1969, 12); var x53 = new Date(1969, 12);
if (Date.prototype !== x53.constructor.prototype) {
throw new Test262Error("#5.3: Date.prototype === x53.constructor.prototype"); assert.sameValue(
} Date.prototype,
x53.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x53.constructor.prototype'
);
var x61 = new Date(1970, 0); var x61 = new Date(1970, 0);
if (typeof x61.constructor.prototype !== "object") {
throw new Test262Error("#6.1: typeof x61.constructor.prototype === 'object'"); assert.sameValue(
} typeof x61.constructor.prototype,
"object",
'The value of `typeof x61.constructor.prototype` is expected to be "object"'
);
var x62 = new Date(1970, 0); var x62 = new Date(1970, 0);
if (!Date.prototype.isPrototypeOf(x62)) { assert(Date.prototype.isPrototypeOf(x62), 'Date.prototype.isPrototypeOf(x62) must return true');
throw new Test262Error('#6.2: Date.prototype.isPrototypeOf(x62)');
}
var x63 = new Date(1970, 0); var x63 = new Date(1970, 0);
if (Date.prototype !== x63.constructor.prototype) {
throw new Test262Error("#6.3: Date.prototype === x63.constructor.prototype"); assert.sameValue(
} Date.prototype,
x63.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x63.constructor.prototype'
);
var x71 = new Date(1999, 11); var x71 = new Date(1999, 11);
if (typeof x71.constructor.prototype !== "object") {
throw new Test262Error("#7.1: typeof x71.constructor.prototype === 'object'"); assert.sameValue(
} typeof x71.constructor.prototype,
"object",
'The value of `typeof x71.constructor.prototype` is expected to be "object"'
);
var x72 = new Date(1999, 11); var x72 = new Date(1999, 11);
if (!Date.prototype.isPrototypeOf(x72)) { assert(Date.prototype.isPrototypeOf(x72), 'Date.prototype.isPrototypeOf(x72) must return true');
throw new Test262Error('#7.2: Date.prototype.isPrototypeOf(x72)');
}
var x73 = new Date(1999, 11); var x73 = new Date(1999, 11);
if (Date.prototype !== x73.constructor.prototype) {
throw new Test262Error("#7.3: Date.prototype === x73.constructor.prototype"); assert.sameValue(
} Date.prototype,
x73.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x73.constructor.prototype'
);
var x81 = new Date(1999, 12); var x81 = new Date(1999, 12);
if (typeof x81.constructor.prototype !== "object") {
throw new Test262Error("#8.1: typeof x81.constructor.prototype === 'object'"); assert.sameValue(
} typeof x81.constructor.prototype,
"object",
'The value of `typeof x81.constructor.prototype` is expected to be "object"'
);
var x82 = new Date(1999, 12); var x82 = new Date(1999, 12);
if (!Date.prototype.isPrototypeOf(x82)) { assert(Date.prototype.isPrototypeOf(x82), 'Date.prototype.isPrototypeOf(x82) must return true');
throw new Test262Error('#8.2: Date.prototype.isPrototypeOf(x82)');
}
var x83 = new Date(1999, 12); var x83 = new Date(1999, 12);
if (Date.prototype !== x83.constructor.prototype) {
throw new Test262Error("#8.3: Date.prototype === x83.constructor.prototype"); assert.sameValue(
} Date.prototype,
x83.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x83.constructor.prototype'
);
var x91 = new Date(2000, 0); var x91 = new Date(2000, 0);
if (typeof x91.constructor.prototype !== "object") {
throw new Test262Error("#9.1: typeof x91.constructor.prototype === 'object'"); assert.sameValue(
} typeof x91.constructor.prototype,
"object",
'The value of `typeof x91.constructor.prototype` is expected to be "object"'
);
var x92 = new Date(2000, 0); var x92 = new Date(2000, 0);
if (!Date.prototype.isPrototypeOf(x92)) { assert(Date.prototype.isPrototypeOf(x92), 'Date.prototype.isPrototypeOf(x92) must return true');
throw new Test262Error('#9.2: Date.prototype.isPrototypeOf(x92)');
}
var x93 = new Date(2000, 0); var x93 = new Date(2000, 0);
if (Date.prototype !== x93.constructor.prototype) {
throw new Test262Error("#9.3: Date.prototype === x93.constructor.prototype"); assert.sameValue(
} Date.prototype,
x93.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x93.constructor.prototype'
);
var x101 = new Date(2099, 11); var x101 = new Date(2099, 11);
if (typeof x101.constructor.prototype !== "object") {
throw new Test262Error("#10.1: typeof x101.constructor.prototype === 'object'"); assert.sameValue(
} typeof x101.constructor.prototype,
"object",
'The value of `typeof x101.constructor.prototype` is expected to be "object"'
);
var x102 = new Date(2099, 11); var x102 = new Date(2099, 11);
if (!Date.prototype.isPrototypeOf(x102)) { assert(Date.prototype.isPrototypeOf(x102), 'Date.prototype.isPrototypeOf(x102) must return true');
throw new Test262Error('#10.2: Date.prototype.isPrototypeOf(x102)');
}
var x103 = new Date(2099, 11); var x103 = new Date(2099, 11);
if (Date.prototype !== x103.constructor.prototype) {
throw new Test262Error("#10.3: Date.prototype === x103.constructor.prototype"); assert.sameValue(
} Date.prototype,
x103.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x103.constructor.prototype'
);
var x111 = new Date(2099, 12); var x111 = new Date(2099, 12);
if (typeof x111.constructor.prototype !== "object") {
throw new Test262Error("#11.1: typeof x111.constructor.prototype === 'object'"); assert.sameValue(
} typeof x111.constructor.prototype,
"object",
'The value of `typeof x111.constructor.prototype` is expected to be "object"'
);
var x112 = new Date(2099, 12); var x112 = new Date(2099, 12);
if (!Date.prototype.isPrototypeOf(x112)) { assert(Date.prototype.isPrototypeOf(x112), 'Date.prototype.isPrototypeOf(x112) must return true');
throw new Test262Error('#11.2: Date.prototype.isPrototypeOf(x112)');
}
var x113 = new Date(2099, 12); var x113 = new Date(2099, 12);
if (Date.prototype !== x113.constructor.prototype) {
throw new Test262Error("#11.3: Date.prototype === x113.constructor.prototype"); assert.sameValue(
} Date.prototype,
x113.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x113.constructor.prototype'
);
var x121 = new Date(2100, 0); var x121 = new Date(2100, 0);
if (typeof x121.constructor.prototype !== "object") {
throw new Test262Error("#12.1: typeof x121.constructor.prototype === 'object'"); assert.sameValue(
} typeof x121.constructor.prototype,
"object",
'The value of `typeof x121.constructor.prototype` is expected to be "object"'
);
var x122 = new Date(2100, 0); var x122 = new Date(2100, 0);
if (!Date.prototype.isPrototypeOf(x122)) { assert(Date.prototype.isPrototypeOf(x122), 'Date.prototype.isPrototypeOf(x122) must return true');
throw new Test262Error('#12.2: Date.prototype.isPrototypeOf(x122)');
}
var x123 = new Date(2100, 0); var x123 = new Date(2100, 0);
if (Date.prototype !== x123.constructor.prototype) {
throw new Test262Error("#12.3: Date.prototype === x123.constructor.prototype"); assert.sameValue(
} Date.prototype,
x123.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x123.constructor.prototype'
);

View File

@ -11,181 +11,229 @@ description: 3 arguments, (year, month, date)
---*/ ---*/
var x11 = new Date(1899, 11, 31); var x11 = new Date(1899, 11, 31);
if (typeof x11.constructor.prototype !== "object") {
throw new Test262Error("#1.1: typeof x11.constructor.prototype === 'object'"); assert.sameValue(
} typeof x11.constructor.prototype,
"object",
'The value of `typeof x11.constructor.prototype` is expected to be "object"'
);
var x12 = new Date(1899, 11, 31); var x12 = new Date(1899, 11, 31);
if (!Date.prototype.isPrototypeOf(x12)) { assert(Date.prototype.isPrototypeOf(x12), 'Date.prototype.isPrototypeOf(x12) must return true');
throw new Test262Error('#1.2: Date.prototype.isPrototypeOf(x12)');
}
var x13 = new Date(1899, 11, 31); var x13 = new Date(1899, 11, 31);
if (Date.prototype !== x13.constructor.prototype) {
throw new Test262Error("#1.3: Date.prototype === x13.constructor.prototype"); assert.sameValue(
} Date.prototype,
x13.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x13.constructor.prototype'
);
var x21 = new Date(1899, 12, 1); var x21 = new Date(1899, 12, 1);
if (typeof x21.constructor.prototype !== "object") {
throw new Test262Error("#2.1: typeof x21.constructor.prototype === 'object'"); assert.sameValue(
} typeof x21.constructor.prototype,
"object",
'The value of `typeof x21.constructor.prototype` is expected to be "object"'
);
var x22 = new Date(1899, 12, 1); var x22 = new Date(1899, 12, 1);
if (!Date.prototype.isPrototypeOf(x22)) { assert(Date.prototype.isPrototypeOf(x22), 'Date.prototype.isPrototypeOf(x22) must return true');
throw new Test262Error('#2.2: Date.prototype.isPrototypeOf(x22)');
}
var x23 = new Date(1899, 12, 1); var x23 = new Date(1899, 12, 1);
if (Date.prototype !== x23.constructor.prototype) {
throw new Test262Error("#2.3: Date.prototype === x23.constructor.prototype"); assert.sameValue(
} Date.prototype,
x23.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x23.constructor.prototype'
);
var x31 = new Date(1900, 0, 1); var x31 = new Date(1900, 0, 1);
if (typeof x31.constructor.prototype !== "object") {
throw new Test262Error("#3.1: typeof x31.constructor.prototype === 'object'"); assert.sameValue(
} typeof x31.constructor.prototype,
"object",
'The value of `typeof x31.constructor.prototype` is expected to be "object"'
);
var x32 = new Date(1900, 0, 1); var x32 = new Date(1900, 0, 1);
if (!Date.prototype.isPrototypeOf(x32)) { assert(Date.prototype.isPrototypeOf(x32), 'Date.prototype.isPrototypeOf(x32) must return true');
throw new Test262Error('#3.2: Date.prototype.isPrototypeOf(x32)');
}
var x33 = new Date(1900, 0, 1); var x33 = new Date(1900, 0, 1);
if (Date.prototype !== x33.constructor.prototype) {
throw new Test262Error("#3.3: Date.prototype === x33.constructor.prototype"); assert.sameValue(
} Date.prototype,
x33.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x33.constructor.prototype'
);
var x41 = new Date(1969, 11, 31); var x41 = new Date(1969, 11, 31);
if (typeof x41.constructor.prototype !== "object") {
throw new Test262Error("#4.1: typeof x41.constructor.prototype === 'object'"); assert.sameValue(
} typeof x41.constructor.prototype,
"object",
'The value of `typeof x41.constructor.prototype` is expected to be "object"'
);
var x42 = new Date(1969, 11, 31); var x42 = new Date(1969, 11, 31);
if (!Date.prototype.isPrototypeOf(x42)) { assert(Date.prototype.isPrototypeOf(x42), 'Date.prototype.isPrototypeOf(x42) must return true');
throw new Test262Error('#4.2: Date.prototype.isPrototypeOf(x42)');
}
var x43 = new Date(1969, 11, 31); var x43 = new Date(1969, 11, 31);
if (Date.prototype !== x43.constructor.prototype) {
throw new Test262Error("#4.3: Date.prototype === x43.constructor.prototype"); assert.sameValue(
} Date.prototype,
x43.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x43.constructor.prototype'
);
var x51 = new Date(1969, 12, 1); var x51 = new Date(1969, 12, 1);
if (typeof x51.constructor.prototype !== "object") {
throw new Test262Error("#5.1: typeof x51.constructor.prototype === 'object'"); assert.sameValue(
} typeof x51.constructor.prototype,
"object",
'The value of `typeof x51.constructor.prototype` is expected to be "object"'
);
var x52 = new Date(1969, 12, 1); var x52 = new Date(1969, 12, 1);
if (!Date.prototype.isPrototypeOf(x52)) { assert(Date.prototype.isPrototypeOf(x52), 'Date.prototype.isPrototypeOf(x52) must return true');
throw new Test262Error('#5.2: Date.prototype.isPrototypeOf(x52)');
}
var x53 = new Date(1969, 12, 1); var x53 = new Date(1969, 12, 1);
if (Date.prototype !== x53.constructor.prototype) {
throw new Test262Error("#5.3: Date.prototype === x53.constructor.prototype"); assert.sameValue(
} Date.prototype,
x53.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x53.constructor.prototype'
);
var x61 = new Date(1970, 0, 1); var x61 = new Date(1970, 0, 1);
if (typeof x61.constructor.prototype !== "object") {
throw new Test262Error("#6.1: typeof x61.constructor.prototype === 'object'"); assert.sameValue(
} typeof x61.constructor.prototype,
"object",
'The value of `typeof x61.constructor.prototype` is expected to be "object"'
);
var x62 = new Date(1970, 0, 1); var x62 = new Date(1970, 0, 1);
if (!Date.prototype.isPrototypeOf(x62)) { assert(Date.prototype.isPrototypeOf(x62), 'Date.prototype.isPrototypeOf(x62) must return true');
throw new Test262Error('#6.2: Date.prototype.isPrototypeOf(x62)');
}
var x63 = new Date(1970, 0, 1); var x63 = new Date(1970, 0, 1);
if (Date.prototype !== x63.constructor.prototype) {
throw new Test262Error("#6.3: Date.prototype === x63.constructor.prototype"); assert.sameValue(
} Date.prototype,
x63.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x63.constructor.prototype'
);
var x71 = new Date(1999, 11, 31); var x71 = new Date(1999, 11, 31);
if (typeof x71.constructor.prototype !== "object") {
throw new Test262Error("#7.1: typeof x71.constructor.prototype === 'object'"); assert.sameValue(
} typeof x71.constructor.prototype,
"object",
'The value of `typeof x71.constructor.prototype` is expected to be "object"'
);
var x72 = new Date(1999, 11, 31); var x72 = new Date(1999, 11, 31);
if (!Date.prototype.isPrototypeOf(x72)) { assert(Date.prototype.isPrototypeOf(x72), 'Date.prototype.isPrototypeOf(x72) must return true');
throw new Test262Error('#7.2: Date.prototype.isPrototypeOf(x72)');
}
var x73 = new Date(1999, 11, 31); var x73 = new Date(1999, 11, 31);
if (Date.prototype !== x73.constructor.prototype) {
throw new Test262Error("#7.3: Date.prototype === x73.constructor.prototype"); assert.sameValue(
} Date.prototype,
x73.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x73.constructor.prototype'
);
var x81 = new Date(1999, 12, 1); var x81 = new Date(1999, 12, 1);
if (typeof x81.constructor.prototype !== "object") {
throw new Test262Error("#8.1: typeof x81.constructor.prototype === 'object'"); assert.sameValue(
} typeof x81.constructor.prototype,
"object",
'The value of `typeof x81.constructor.prototype` is expected to be "object"'
);
var x82 = new Date(1999, 12, 1); var x82 = new Date(1999, 12, 1);
if (!Date.prototype.isPrototypeOf(x82)) { assert(Date.prototype.isPrototypeOf(x82), 'Date.prototype.isPrototypeOf(x82) must return true');
throw new Test262Error('#8.2: Date.prototype.isPrototypeOf(x82)');
}
var x83 = new Date(1999, 12, 1); var x83 = new Date(1999, 12, 1);
if (Date.prototype !== x83.constructor.prototype) {
throw new Test262Error("#8.3: Date.prototype === x83.constructor.prototype"); assert.sameValue(
} Date.prototype,
x83.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x83.constructor.prototype'
);
var x91 = new Date(2000, 0, 1); var x91 = new Date(2000, 0, 1);
if (typeof x91.constructor.prototype !== "object") {
throw new Test262Error("#9.1: typeof x91.constructor.prototype === 'object'"); assert.sameValue(
} typeof x91.constructor.prototype,
"object",
'The value of `typeof x91.constructor.prototype` is expected to be "object"'
);
var x92 = new Date(2000, 0, 1); var x92 = new Date(2000, 0, 1);
if (!Date.prototype.isPrototypeOf(x92)) { assert(Date.prototype.isPrototypeOf(x92), 'Date.prototype.isPrototypeOf(x92) must return true');
throw new Test262Error('#9.2: Date.prototype.isPrototypeOf(x92)');
}
var x93 = new Date(2000, 0, 1); var x93 = new Date(2000, 0, 1);
if (Date.prototype !== x93.constructor.prototype) {
throw new Test262Error("#9.3: Date.prototype === x93.constructor.prototype"); assert.sameValue(
} Date.prototype,
x93.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x93.constructor.prototype'
);
var x101 = new Date(2099, 11, 31); var x101 = new Date(2099, 11, 31);
if (typeof x101.constructor.prototype !== "object") {
throw new Test262Error("#10.1: typeof x101.constructor.prototype === 'object'"); assert.sameValue(
} typeof x101.constructor.prototype,
"object",
'The value of `typeof x101.constructor.prototype` is expected to be "object"'
);
var x102 = new Date(2099, 11, 31); var x102 = new Date(2099, 11, 31);
if (!Date.prototype.isPrototypeOf(x102)) { assert(Date.prototype.isPrototypeOf(x102), 'Date.prototype.isPrototypeOf(x102) must return true');
throw new Test262Error('#10.2: Date.prototype.isPrototypeOf(x102)');
}
var x103 = new Date(2099, 11, 31); var x103 = new Date(2099, 11, 31);
if (Date.prototype !== x103.constructor.prototype) {
throw new Test262Error("#10.3: Date.prototype === x103.constructor.prototype"); assert.sameValue(
} Date.prototype,
x103.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x103.constructor.prototype'
);
var x111 = new Date(2099, 12, 1); var x111 = new Date(2099, 12, 1);
if (typeof x111.constructor.prototype !== "object") {
throw new Test262Error("#11.1: typeof x111.constructor.prototype === 'object'"); assert.sameValue(
} typeof x111.constructor.prototype,
"object",
'The value of `typeof x111.constructor.prototype` is expected to be "object"'
);
var x112 = new Date(2099, 12, 1); var x112 = new Date(2099, 12, 1);
if (!Date.prototype.isPrototypeOf(x112)) { assert(Date.prototype.isPrototypeOf(x112), 'Date.prototype.isPrototypeOf(x112) must return true');
throw new Test262Error('#11.2: Date.prototype.isPrototypeOf(x112)');
}
var x113 = new Date(2099, 12, 1); var x113 = new Date(2099, 12, 1);
if (Date.prototype !== x113.constructor.prototype) {
throw new Test262Error("#11.3: Date.prototype === x113.constructor.prototype"); assert.sameValue(
} Date.prototype,
x113.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x113.constructor.prototype'
);
var x121 = new Date(2100, 0, 1); var x121 = new Date(2100, 0, 1);
if (typeof x121.constructor.prototype !== "object") {
throw new Test262Error("#12.1: typeof x121.constructor.prototype === 'object'"); assert.sameValue(
} typeof x121.constructor.prototype,
"object",
'The value of `typeof x121.constructor.prototype` is expected to be "object"'
);
var x122 = new Date(2100, 0, 1); var x122 = new Date(2100, 0, 1);
if (!Date.prototype.isPrototypeOf(x122)) { assert(Date.prototype.isPrototypeOf(x122), 'Date.prototype.isPrototypeOf(x122) must return true');
throw new Test262Error('#12.2: Date.prototype.isPrototypeOf(x122)');
}
var x123 = new Date(2100, 0, 1); var x123 = new Date(2100, 0, 1);
if (Date.prototype !== x123.constructor.prototype) {
throw new Test262Error("#12.3: Date.prototype === x123.constructor.prototype"); assert.sameValue(
} Date.prototype,
x123.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x123.constructor.prototype'
);

View File

@ -11,181 +11,229 @@ description: 4 arguments, (year, month, date, hours)
---*/ ---*/
var x11 = new Date(1899, 11, 31, 23); var x11 = new Date(1899, 11, 31, 23);
if (typeof x11.constructor.prototype !== "object") {
throw new Test262Error("#1.1: typeof x11.constructor.prototype === 'object'"); assert.sameValue(
} typeof x11.constructor.prototype,
"object",
'The value of `typeof x11.constructor.prototype` is expected to be "object"'
);
var x12 = new Date(1899, 11, 31, 23); var x12 = new Date(1899, 11, 31, 23);
if (!Date.prototype.isPrototypeOf(x12)) { assert(Date.prototype.isPrototypeOf(x12), 'Date.prototype.isPrototypeOf(x12) must return true');
throw new Test262Error('#1.2: Date.prototype.isPrototypeOf(x12)');
}
var x13 = new Date(1899, 11, 31, 23); var x13 = new Date(1899, 11, 31, 23);
if (Date.prototype !== x13.constructor.prototype) {
throw new Test262Error("#1.3: Date.prototype === x13.constructor.prototype"); assert.sameValue(
} Date.prototype,
x13.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x13.constructor.prototype'
);
var x21 = new Date(1899, 12, 1, 0); var x21 = new Date(1899, 12, 1, 0);
if (typeof x21.constructor.prototype !== "object") {
throw new Test262Error("#2.1: typeof x21.constructor.prototype === 'object'"); assert.sameValue(
} typeof x21.constructor.prototype,
"object",
'The value of `typeof x21.constructor.prototype` is expected to be "object"'
);
var x22 = new Date(1899, 12, 1, 0); var x22 = new Date(1899, 12, 1, 0);
if (!Date.prototype.isPrototypeOf(x22)) { assert(Date.prototype.isPrototypeOf(x22), 'Date.prototype.isPrototypeOf(x22) must return true');
throw new Test262Error('#2.2: Date.prototype.isPrototypeOf(x22)');
}
var x23 = new Date(1899, 12, 1, 0); var x23 = new Date(1899, 12, 1, 0);
if (Date.prototype !== x23.constructor.prototype) {
throw new Test262Error("#2.3: Date.prototype === x23.constructor.prototype"); assert.sameValue(
} Date.prototype,
x23.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x23.constructor.prototype'
);
var x31 = new Date(1900, 0, 1, 0); var x31 = new Date(1900, 0, 1, 0);
if (typeof x31.constructor.prototype !== "object") {
throw new Test262Error("#3.1: typeof x31.constructor.prototype === 'object'"); assert.sameValue(
} typeof x31.constructor.prototype,
"object",
'The value of `typeof x31.constructor.prototype` is expected to be "object"'
);
var x32 = new Date(1900, 0, 1, 0); var x32 = new Date(1900, 0, 1, 0);
if (!Date.prototype.isPrototypeOf(x32)) { assert(Date.prototype.isPrototypeOf(x32), 'Date.prototype.isPrototypeOf(x32) must return true');
throw new Test262Error('#3.2: Date.prototype.isPrototypeOf(x32)');
}
var x33 = new Date(1900, 0, 1, 0); var x33 = new Date(1900, 0, 1, 0);
if (Date.prototype !== x33.constructor.prototype) {
throw new Test262Error("#3.3: Date.prototype === x33.constructor.prototype"); assert.sameValue(
} Date.prototype,
x33.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x33.constructor.prototype'
);
var x41 = new Date(1969, 11, 31, 23); var x41 = new Date(1969, 11, 31, 23);
if (typeof x41.constructor.prototype !== "object") {
throw new Test262Error("#4.1: typeof x41.constructor.prototype === 'object'"); assert.sameValue(
} typeof x41.constructor.prototype,
"object",
'The value of `typeof x41.constructor.prototype` is expected to be "object"'
);
var x42 = new Date(1969, 11, 31, 23); var x42 = new Date(1969, 11, 31, 23);
if (!Date.prototype.isPrototypeOf(x42)) { assert(Date.prototype.isPrototypeOf(x42), 'Date.prototype.isPrototypeOf(x42) must return true');
throw new Test262Error('#4.2: Date.prototype.isPrototypeOf(x42)');
}
var x43 = new Date(1969, 11, 31, 23); var x43 = new Date(1969, 11, 31, 23);
if (Date.prototype !== x43.constructor.prototype) {
throw new Test262Error("#4.3: Date.prototype === x43.constructor.prototype"); assert.sameValue(
} Date.prototype,
x43.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x43.constructor.prototype'
);
var x51 = new Date(1969, 12, 1, 0); var x51 = new Date(1969, 12, 1, 0);
if (typeof x51.constructor.prototype !== "object") {
throw new Test262Error("#5.1: typeof x51.constructor.prototype === 'object'"); assert.sameValue(
} typeof x51.constructor.prototype,
"object",
'The value of `typeof x51.constructor.prototype` is expected to be "object"'
);
var x52 = new Date(1969, 12, 1, 0); var x52 = new Date(1969, 12, 1, 0);
if (!Date.prototype.isPrototypeOf(x52)) { assert(Date.prototype.isPrototypeOf(x52), 'Date.prototype.isPrototypeOf(x52) must return true');
throw new Test262Error('#5.2: Date.prototype.isPrototypeOf(x52)');
}
var x53 = new Date(1969, 12, 1, 0); var x53 = new Date(1969, 12, 1, 0);
if (Date.prototype !== x53.constructor.prototype) {
throw new Test262Error("#5.3: Date.prototype === x53.constructor.prototype"); assert.sameValue(
} Date.prototype,
x53.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x53.constructor.prototype'
);
var x61 = new Date(1970, 0, 1, 0); var x61 = new Date(1970, 0, 1, 0);
if (typeof x61.constructor.prototype !== "object") {
throw new Test262Error("#6.1: typeof x61.constructor.prototype === 'object'"); assert.sameValue(
} typeof x61.constructor.prototype,
"object",
'The value of `typeof x61.constructor.prototype` is expected to be "object"'
);
var x62 = new Date(1970, 0, 1, 0); var x62 = new Date(1970, 0, 1, 0);
if (!Date.prototype.isPrototypeOf(x62)) { assert(Date.prototype.isPrototypeOf(x62), 'Date.prototype.isPrototypeOf(x62) must return true');
throw new Test262Error('#6.2: Date.prototype.isPrototypeOf(x62)');
}
var x63 = new Date(1970, 0, 1, 0); var x63 = new Date(1970, 0, 1, 0);
if (Date.prototype !== x63.constructor.prototype) {
throw new Test262Error("#6.3: Date.prototype === x63.constructor.prototype"); assert.sameValue(
} Date.prototype,
x63.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x63.constructor.prototype'
);
var x71 = new Date(1999, 11, 31, 23); var x71 = new Date(1999, 11, 31, 23);
if (typeof x71.constructor.prototype !== "object") {
throw new Test262Error("#7.1: typeof x71.constructor.prototype === 'object'"); assert.sameValue(
} typeof x71.constructor.prototype,
"object",
'The value of `typeof x71.constructor.prototype` is expected to be "object"'
);
var x72 = new Date(1999, 11, 31, 23); var x72 = new Date(1999, 11, 31, 23);
if (!Date.prototype.isPrototypeOf(x72)) { assert(Date.prototype.isPrototypeOf(x72), 'Date.prototype.isPrototypeOf(x72) must return true');
throw new Test262Error('#7.2: Date.prototype.isPrototypeOf(x72)');
}
var x73 = new Date(1999, 11, 31, 23); var x73 = new Date(1999, 11, 31, 23);
if (Date.prototype !== x73.constructor.prototype) {
throw new Test262Error("#7.3: Date.prototype === x73.constructor.prototype"); assert.sameValue(
} Date.prototype,
x73.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x73.constructor.prototype'
);
var x81 = new Date(1999, 12, 1, 0); var x81 = new Date(1999, 12, 1, 0);
if (typeof x81.constructor.prototype !== "object") {
throw new Test262Error("#8.1: typeof x81.constructor.prototype === 'object'"); assert.sameValue(
} typeof x81.constructor.prototype,
"object",
'The value of `typeof x81.constructor.prototype` is expected to be "object"'
);
var x82 = new Date(1999, 12, 1, 0); var x82 = new Date(1999, 12, 1, 0);
if (!Date.prototype.isPrototypeOf(x82)) { assert(Date.prototype.isPrototypeOf(x82), 'Date.prototype.isPrototypeOf(x82) must return true');
throw new Test262Error('#8.2: Date.prototype.isPrototypeOf(x82)');
}
var x83 = new Date(1999, 12, 1, 0); var x83 = new Date(1999, 12, 1, 0);
if (Date.prototype !== x83.constructor.prototype) {
throw new Test262Error("#8.3: Date.prototype === x83.constructor.prototype"); assert.sameValue(
} Date.prototype,
x83.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x83.constructor.prototype'
);
var x91 = new Date(2000, 0, 1, 0); var x91 = new Date(2000, 0, 1, 0);
if (typeof x91.constructor.prototype !== "object") {
throw new Test262Error("#9.1: typeof x91.constructor.prototype === 'object'"); assert.sameValue(
} typeof x91.constructor.prototype,
"object",
'The value of `typeof x91.constructor.prototype` is expected to be "object"'
);
var x92 = new Date(2000, 0, 1, 0); var x92 = new Date(2000, 0, 1, 0);
if (!Date.prototype.isPrototypeOf(x92)) { assert(Date.prototype.isPrototypeOf(x92), 'Date.prototype.isPrototypeOf(x92) must return true');
throw new Test262Error('#9.2: Date.prototype.isPrototypeOf(x92)');
}
var x93 = new Date(2000, 0, 1, 0); var x93 = new Date(2000, 0, 1, 0);
if (Date.prototype !== x93.constructor.prototype) {
throw new Test262Error("#9.3: Date.prototype === x93.constructor.prototype"); assert.sameValue(
} Date.prototype,
x93.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x93.constructor.prototype'
);
var x101 = new Date(2099, 11, 31, 23); var x101 = new Date(2099, 11, 31, 23);
if (typeof x101.constructor.prototype !== "object") {
throw new Test262Error("#10.1: typeof x101.constructor.prototype === 'object'"); assert.sameValue(
} typeof x101.constructor.prototype,
"object",
'The value of `typeof x101.constructor.prototype` is expected to be "object"'
);
var x102 = new Date(2099, 11, 31, 23); var x102 = new Date(2099, 11, 31, 23);
if (!Date.prototype.isPrototypeOf(x102)) { assert(Date.prototype.isPrototypeOf(x102), 'Date.prototype.isPrototypeOf(x102) must return true');
throw new Test262Error('#10.2: Date.prototype.isPrototypeOf(x102)');
}
var x103 = new Date(2099, 11, 31, 23); var x103 = new Date(2099, 11, 31, 23);
if (Date.prototype !== x103.constructor.prototype) {
throw new Test262Error("#10.3: Date.prototype === x103.constructor.prototype"); assert.sameValue(
} Date.prototype,
x103.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x103.constructor.prototype'
);
var x111 = new Date(2099, 12, 1, 0); var x111 = new Date(2099, 12, 1, 0);
if (typeof x111.constructor.prototype !== "object") {
throw new Test262Error("#11.1: typeof x111.constructor.prototype === 'object'"); assert.sameValue(
} typeof x111.constructor.prototype,
"object",
'The value of `typeof x111.constructor.prototype` is expected to be "object"'
);
var x112 = new Date(2099, 12, 1, 0); var x112 = new Date(2099, 12, 1, 0);
if (!Date.prototype.isPrototypeOf(x112)) { assert(Date.prototype.isPrototypeOf(x112), 'Date.prototype.isPrototypeOf(x112) must return true');
throw new Test262Error('#11.2: Date.prototype.isPrototypeOf(x112)');
}
var x113 = new Date(2099, 12, 1, 0); var x113 = new Date(2099, 12, 1, 0);
if (Date.prototype !== x113.constructor.prototype) {
throw new Test262Error("#11.3: Date.prototype === x113.constructor.prototype"); assert.sameValue(
} Date.prototype,
x113.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x113.constructor.prototype'
);
var x121 = new Date(2100, 0, 1, 0); var x121 = new Date(2100, 0, 1, 0);
if (typeof x121.constructor.prototype !== "object") {
throw new Test262Error("#12.1: typeof x121.constructor.prototype === 'object'"); assert.sameValue(
} typeof x121.constructor.prototype,
"object",
'The value of `typeof x121.constructor.prototype` is expected to be "object"'
);
var x122 = new Date(2100, 0, 1, 0); var x122 = new Date(2100, 0, 1, 0);
if (!Date.prototype.isPrototypeOf(x122)) { assert(Date.prototype.isPrototypeOf(x122), 'Date.prototype.isPrototypeOf(x122) must return true');
throw new Test262Error('#12.2: Date.prototype.isPrototypeOf(x122)');
}
var x123 = new Date(2100, 0, 1, 0); var x123 = new Date(2100, 0, 1, 0);
if (Date.prototype !== x123.constructor.prototype) {
throw new Test262Error("#12.3: Date.prototype === x123.constructor.prototype"); assert.sameValue(
} Date.prototype,
x123.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x123.constructor.prototype'
);

View File

@ -11,181 +11,229 @@ description: 5 arguments, (year, month, date, hours, minutes)
---*/ ---*/
var x11 = new Date(1899, 11, 31, 23, 59); var x11 = new Date(1899, 11, 31, 23, 59);
if (typeof x11.constructor.prototype !== "object") {
throw new Test262Error("#1.1: typeof x11.constructor.prototype === 'object'"); assert.sameValue(
} typeof x11.constructor.prototype,
"object",
'The value of `typeof x11.constructor.prototype` is expected to be "object"'
);
var x12 = new Date(1899, 11, 31, 23, 59); var x12 = new Date(1899, 11, 31, 23, 59);
if (!Date.prototype.isPrototypeOf(x12)) { assert(Date.prototype.isPrototypeOf(x12), 'Date.prototype.isPrototypeOf(x12) must return true');
throw new Test262Error('#1.2: Date.prototype.isPrototypeOf(x12)');
}
var x13 = new Date(1899, 11, 31, 23, 59); var x13 = new Date(1899, 11, 31, 23, 59);
if (Date.prototype !== x13.constructor.prototype) {
throw new Test262Error("#1.3: Date.prototype === x13.constructor.prototype"); assert.sameValue(
} Date.prototype,
x13.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x13.constructor.prototype'
);
var x21 = new Date(1899, 12, 1, 0, 0); var x21 = new Date(1899, 12, 1, 0, 0);
if (typeof x21.constructor.prototype !== "object") {
throw new Test262Error("#2.1: typeof x21.constructor.prototype === 'object'"); assert.sameValue(
} typeof x21.constructor.prototype,
"object",
'The value of `typeof x21.constructor.prototype` is expected to be "object"'
);
var x22 = new Date(1899, 12, 1, 0, 0); var x22 = new Date(1899, 12, 1, 0, 0);
if (!Date.prototype.isPrototypeOf(x22)) { assert(Date.prototype.isPrototypeOf(x22), 'Date.prototype.isPrototypeOf(x22) must return true');
throw new Test262Error('#2.2: Date.prototype.isPrototypeOf(x22)');
}
var x23 = new Date(1899, 12, 1, 0, 0); var x23 = new Date(1899, 12, 1, 0, 0);
if (Date.prototype !== x23.constructor.prototype) {
throw new Test262Error("#2.3: Date.prototype === x23.constructor.prototype"); assert.sameValue(
} Date.prototype,
x23.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x23.constructor.prototype'
);
var x31 = new Date(1900, 0, 1, 0, 0); var x31 = new Date(1900, 0, 1, 0, 0);
if (typeof x31.constructor.prototype !== "object") {
throw new Test262Error("#3.1: typeof x31.constructor.prototype === 'object'"); assert.sameValue(
} typeof x31.constructor.prototype,
"object",
'The value of `typeof x31.constructor.prototype` is expected to be "object"'
);
var x32 = new Date(1900, 0, 1, 0, 0); var x32 = new Date(1900, 0, 1, 0, 0);
if (!Date.prototype.isPrototypeOf(x32)) { assert(Date.prototype.isPrototypeOf(x32), 'Date.prototype.isPrototypeOf(x32) must return true');
throw new Test262Error('#3.2: Date.prototype.isPrototypeOf(x32)');
}
var x33 = new Date(1900, 0, 1, 0, 0); var x33 = new Date(1900, 0, 1, 0, 0);
if (Date.prototype !== x33.constructor.prototype) {
throw new Test262Error("#3.3: Date.prototype === x33.constructor.prototype"); assert.sameValue(
} Date.prototype,
x33.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x33.constructor.prototype'
);
var x41 = new Date(1969, 11, 31, 23, 59); var x41 = new Date(1969, 11, 31, 23, 59);
if (typeof x41.constructor.prototype !== "object") {
throw new Test262Error("#4.1: typeof x41.constructor.prototype === 'object'"); assert.sameValue(
} typeof x41.constructor.prototype,
"object",
'The value of `typeof x41.constructor.prototype` is expected to be "object"'
);
var x42 = new Date(1969, 11, 31, 23, 59); var x42 = new Date(1969, 11, 31, 23, 59);
if (!Date.prototype.isPrototypeOf(x42)) { assert(Date.prototype.isPrototypeOf(x42), 'Date.prototype.isPrototypeOf(x42) must return true');
throw new Test262Error('#4.2: Date.prototype.isPrototypeOf(x42)');
}
var x43 = new Date(1969, 11, 31, 23, 59); var x43 = new Date(1969, 11, 31, 23, 59);
if (Date.prototype !== x43.constructor.prototype) {
throw new Test262Error("#4.3: Date.prototype === x43.constructor.prototype"); assert.sameValue(
} Date.prototype,
x43.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x43.constructor.prototype'
);
var x51 = new Date(1969, 12, 1, 0, 0); var x51 = new Date(1969, 12, 1, 0, 0);
if (typeof x51.constructor.prototype !== "object") {
throw new Test262Error("#5.1: typeof x51.constructor.prototype === 'object'"); assert.sameValue(
} typeof x51.constructor.prototype,
"object",
'The value of `typeof x51.constructor.prototype` is expected to be "object"'
);
var x52 = new Date(1969, 12, 1, 0, 0); var x52 = new Date(1969, 12, 1, 0, 0);
if (!Date.prototype.isPrototypeOf(x52)) { assert(Date.prototype.isPrototypeOf(x52), 'Date.prototype.isPrototypeOf(x52) must return true');
throw new Test262Error('#5.2: Date.prototype.isPrototypeOf(x52)');
}
var x53 = new Date(1969, 12, 1, 0, 0); var x53 = new Date(1969, 12, 1, 0, 0);
if (Date.prototype !== x53.constructor.prototype) {
throw new Test262Error("#5.3: Date.prototype === x53.constructor.prototype"); assert.sameValue(
} Date.prototype,
x53.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x53.constructor.prototype'
);
var x61 = new Date(1970, 0, 1, 0, 0); var x61 = new Date(1970, 0, 1, 0, 0);
if (typeof x61.constructor.prototype !== "object") {
throw new Test262Error("#6.1: typeof x61.constructor.prototype === 'object'"); assert.sameValue(
} typeof x61.constructor.prototype,
"object",
'The value of `typeof x61.constructor.prototype` is expected to be "object"'
);
var x62 = new Date(1970, 0, 1, 0, 0); var x62 = new Date(1970, 0, 1, 0, 0);
if (!Date.prototype.isPrototypeOf(x62)) { assert(Date.prototype.isPrototypeOf(x62), 'Date.prototype.isPrototypeOf(x62) must return true');
throw new Test262Error('#6.2: Date.prototype.isPrototypeOf(x62)');
}
var x63 = new Date(1970, 0, 1, 0, 0); var x63 = new Date(1970, 0, 1, 0, 0);
if (Date.prototype !== x63.constructor.prototype) {
throw new Test262Error("#6.3: Date.prototype === x63.constructor.prototype"); assert.sameValue(
} Date.prototype,
x63.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x63.constructor.prototype'
);
var x71 = new Date(1999, 11, 31, 23, 59); var x71 = new Date(1999, 11, 31, 23, 59);
if (typeof x71.constructor.prototype !== "object") {
throw new Test262Error("#7.1: typeof x71.constructor.prototype === 'object'"); assert.sameValue(
} typeof x71.constructor.prototype,
"object",
'The value of `typeof x71.constructor.prototype` is expected to be "object"'
);
var x72 = new Date(1999, 11, 31, 23, 59); var x72 = new Date(1999, 11, 31, 23, 59);
if (!Date.prototype.isPrototypeOf(x72)) { assert(Date.prototype.isPrototypeOf(x72), 'Date.prototype.isPrototypeOf(x72) must return true');
throw new Test262Error('#7.2: Date.prototype.isPrototypeOf(x72)');
}
var x73 = new Date(1999, 11, 31, 23, 59); var x73 = new Date(1999, 11, 31, 23, 59);
if (Date.prototype !== x73.constructor.prototype) {
throw new Test262Error("#7.3: Date.prototype === x73.constructor.prototype"); assert.sameValue(
} Date.prototype,
x73.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x73.constructor.prototype'
);
var x81 = new Date(1999, 12, 1, 0, 0); var x81 = new Date(1999, 12, 1, 0, 0);
if (typeof x81.constructor.prototype !== "object") {
throw new Test262Error("#8.1: typeof x81.constructor.prototype === 'object'"); assert.sameValue(
} typeof x81.constructor.prototype,
"object",
'The value of `typeof x81.constructor.prototype` is expected to be "object"'
);
var x82 = new Date(1999, 12, 1, 0, 0); var x82 = new Date(1999, 12, 1, 0, 0);
if (!Date.prototype.isPrototypeOf(x82)) { assert(Date.prototype.isPrototypeOf(x82), 'Date.prototype.isPrototypeOf(x82) must return true');
throw new Test262Error('#8.2: Date.prototype.isPrototypeOf(x82)');
}
var x83 = new Date(1999, 12, 1, 0, 0); var x83 = new Date(1999, 12, 1, 0, 0);
if (Date.prototype !== x83.constructor.prototype) {
throw new Test262Error("#8.3: Date.prototype === x83.constructor.prototype"); assert.sameValue(
} Date.prototype,
x83.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x83.constructor.prototype'
);
var x91 = new Date(2000, 0, 1, 0, 0); var x91 = new Date(2000, 0, 1, 0, 0);
if (typeof x91.constructor.prototype !== "object") {
throw new Test262Error("#9.1: typeof x91.constructor.prototype === 'object'"); assert.sameValue(
} typeof x91.constructor.prototype,
"object",
'The value of `typeof x91.constructor.prototype` is expected to be "object"'
);
var x92 = new Date(2000, 0, 1, 0, 0); var x92 = new Date(2000, 0, 1, 0, 0);
if (!Date.prototype.isPrototypeOf(x92)) { assert(Date.prototype.isPrototypeOf(x92), 'Date.prototype.isPrototypeOf(x92) must return true');
throw new Test262Error('#9.2: Date.prototype.isPrototypeOf(x92)');
}
var x93 = new Date(2000, 0, 1, 0, 0); var x93 = new Date(2000, 0, 1, 0, 0);
if (Date.prototype !== x93.constructor.prototype) {
throw new Test262Error("#9.3: Date.prototype === x93.constructor.prototype"); assert.sameValue(
} Date.prototype,
x93.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x93.constructor.prototype'
);
var x101 = new Date(2099, 11, 31, 23, 59); var x101 = new Date(2099, 11, 31, 23, 59);
if (typeof x101.constructor.prototype !== "object") {
throw new Test262Error("#10.1: typeof x101.constructor.prototype === 'object'"); assert.sameValue(
} typeof x101.constructor.prototype,
"object",
'The value of `typeof x101.constructor.prototype` is expected to be "object"'
);
var x102 = new Date(2099, 11, 31, 23, 59); var x102 = new Date(2099, 11, 31, 23, 59);
if (!Date.prototype.isPrototypeOf(x102)) { assert(Date.prototype.isPrototypeOf(x102), 'Date.prototype.isPrototypeOf(x102) must return true');
throw new Test262Error('#10.2: Date.prototype.isPrototypeOf(x102)');
}
var x103 = new Date(2099, 11, 31, 23, 59); var x103 = new Date(2099, 11, 31, 23, 59);
if (Date.prototype !== x103.constructor.prototype) {
throw new Test262Error("#10.3: Date.prototype === x103.constructor.prototype"); assert.sameValue(
} Date.prototype,
x103.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x103.constructor.prototype'
);
var x111 = new Date(2099, 12, 1, 0, 0); var x111 = new Date(2099, 12, 1, 0, 0);
if (typeof x111.constructor.prototype !== "object") {
throw new Test262Error("#11.1: typeof x111.constructor.prototype === 'object'"); assert.sameValue(
} typeof x111.constructor.prototype,
"object",
'The value of `typeof x111.constructor.prototype` is expected to be "object"'
);
var x112 = new Date(2099, 12, 1, 0, 0); var x112 = new Date(2099, 12, 1, 0, 0);
if (!Date.prototype.isPrototypeOf(x112)) { assert(Date.prototype.isPrototypeOf(x112), 'Date.prototype.isPrototypeOf(x112) must return true');
throw new Test262Error('#11.2: Date.prototype.isPrototypeOf(x112)');
}
var x113 = new Date(2099, 12, 1, 0, 0); var x113 = new Date(2099, 12, 1, 0, 0);
if (Date.prototype !== x113.constructor.prototype) {
throw new Test262Error("#11.3: Date.prototype === x113.constructor.prototype"); assert.sameValue(
} Date.prototype,
x113.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x113.constructor.prototype'
);
var x121 = new Date(2100, 0, 1, 0, 0); var x121 = new Date(2100, 0, 1, 0, 0);
if (typeof x121.constructor.prototype !== "object") {
throw new Test262Error("#12.1: typeof x121.constructor.prototype === 'object'"); assert.sameValue(
} typeof x121.constructor.prototype,
"object",
'The value of `typeof x121.constructor.prototype` is expected to be "object"'
);
var x122 = new Date(2100, 0, 1, 0, 0); var x122 = new Date(2100, 0, 1, 0, 0);
if (!Date.prototype.isPrototypeOf(x122)) { assert(Date.prototype.isPrototypeOf(x122), 'Date.prototype.isPrototypeOf(x122) must return true');
throw new Test262Error('#12.2: Date.prototype.isPrototypeOf(x122)');
}
var x123 = new Date(2100, 0, 1, 0, 0); var x123 = new Date(2100, 0, 1, 0, 0);
if (Date.prototype !== x123.constructor.prototype) {
throw new Test262Error("#12.3: Date.prototype === x123.constructor.prototype"); assert.sameValue(
} Date.prototype,
x123.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x123.constructor.prototype'
);

View File

@ -11,181 +11,229 @@ description: 6 arguments, (year, month, date, hours, minutes, seconds)
---*/ ---*/
var x11 = new Date(1899, 11, 31, 23, 59, 59); var x11 = new Date(1899, 11, 31, 23, 59, 59);
if (typeof x11.constructor.prototype !== "object") {
throw new Test262Error("#1.1: typeof x11.constructor.prototype === 'object'"); assert.sameValue(
} typeof x11.constructor.prototype,
"object",
'The value of `typeof x11.constructor.prototype` is expected to be "object"'
);
var x12 = new Date(1899, 11, 31, 23, 59, 59); var x12 = new Date(1899, 11, 31, 23, 59, 59);
if (!Date.prototype.isPrototypeOf(x12)) { assert(Date.prototype.isPrototypeOf(x12), 'Date.prototype.isPrototypeOf(x12) must return true');
throw new Test262Error('#1.2: Date.prototype.isPrototypeOf(x12)');
}
var x13 = new Date(1899, 11, 31, 23, 59, 59); var x13 = new Date(1899, 11, 31, 23, 59, 59);
if (Date.prototype !== x13.constructor.prototype) {
throw new Test262Error("#1.3: Date.prototype === x13.constructor.prototype"); assert.sameValue(
} Date.prototype,
x13.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x13.constructor.prototype'
);
var x21 = new Date(1899, 12, 1, 0, 0, 0); var x21 = new Date(1899, 12, 1, 0, 0, 0);
if (typeof x21.constructor.prototype !== "object") {
throw new Test262Error("#2.1: typeof x21.constructor.prototype === 'object'"); assert.sameValue(
} typeof x21.constructor.prototype,
"object",
'The value of `typeof x21.constructor.prototype` is expected to be "object"'
);
var x22 = new Date(1899, 12, 1, 0, 0, 0); var x22 = new Date(1899, 12, 1, 0, 0, 0);
if (!Date.prototype.isPrototypeOf(x22)) { assert(Date.prototype.isPrototypeOf(x22), 'Date.prototype.isPrototypeOf(x22) must return true');
throw new Test262Error('#2.2: Date.prototype.isPrototypeOf(x22)');
}
var x23 = new Date(1899, 12, 1, 0, 0, 0); var x23 = new Date(1899, 12, 1, 0, 0, 0);
if (Date.prototype !== x23.constructor.prototype) {
throw new Test262Error("#2.3: Date.prototype === x23.constructor.prototype"); assert.sameValue(
} Date.prototype,
x23.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x23.constructor.prototype'
);
var x31 = new Date(1900, 0, 1, 0, 0, 0); var x31 = new Date(1900, 0, 1, 0, 0, 0);
if (typeof x31.constructor.prototype !== "object") {
throw new Test262Error("#3.1: typeof x31.constructor.prototype === 'object'"); assert.sameValue(
} typeof x31.constructor.prototype,
"object",
'The value of `typeof x31.constructor.prototype` is expected to be "object"'
);
var x32 = new Date(1900, 0, 1, 0, 0, 0); var x32 = new Date(1900, 0, 1, 0, 0, 0);
if (!Date.prototype.isPrototypeOf(x32)) { assert(Date.prototype.isPrototypeOf(x32), 'Date.prototype.isPrototypeOf(x32) must return true');
throw new Test262Error('#3.2: Date.prototype.isPrototypeOf(x32)');
}
var x33 = new Date(1900, 0, 1, 0, 0, 0); var x33 = new Date(1900, 0, 1, 0, 0, 0);
if (Date.prototype !== x33.constructor.prototype) {
throw new Test262Error("#3.3: Date.prototype === x33.constructor.prototype"); assert.sameValue(
} Date.prototype,
x33.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x33.constructor.prototype'
);
var x41 = new Date(1969, 11, 31, 23, 59, 59); var x41 = new Date(1969, 11, 31, 23, 59, 59);
if (typeof x41.constructor.prototype !== "object") {
throw new Test262Error("#4.1: typeof x41.constructor.prototype === 'object'"); assert.sameValue(
} typeof x41.constructor.prototype,
"object",
'The value of `typeof x41.constructor.prototype` is expected to be "object"'
);
var x42 = new Date(1969, 11, 31, 23, 59, 59); var x42 = new Date(1969, 11, 31, 23, 59, 59);
if (!Date.prototype.isPrototypeOf(x42)) { assert(Date.prototype.isPrototypeOf(x42), 'Date.prototype.isPrototypeOf(x42) must return true');
throw new Test262Error('#4.2: Date.prototype.isPrototypeOf(x42)');
}
var x43 = new Date(1969, 11, 31, 23, 59, 59); var x43 = new Date(1969, 11, 31, 23, 59, 59);
if (Date.prototype !== x43.constructor.prototype) {
throw new Test262Error("#4.3: Date.prototype === x43.constructor.prototype"); assert.sameValue(
} Date.prototype,
x43.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x43.constructor.prototype'
);
var x51 = new Date(1969, 12, 1, 0, 0, 0); var x51 = new Date(1969, 12, 1, 0, 0, 0);
if (typeof x51.constructor.prototype !== "object") {
throw new Test262Error("#5.1: typeof x51.constructor.prototype === 'object'"); assert.sameValue(
} typeof x51.constructor.prototype,
"object",
'The value of `typeof x51.constructor.prototype` is expected to be "object"'
);
var x52 = new Date(1969, 12, 1, 0, 0, 0); var x52 = new Date(1969, 12, 1, 0, 0, 0);
if (!Date.prototype.isPrototypeOf(x52)) { assert(Date.prototype.isPrototypeOf(x52), 'Date.prototype.isPrototypeOf(x52) must return true');
throw new Test262Error('#5.2: Date.prototype.isPrototypeOf(x52)');
}
var x53 = new Date(1969, 12, 1, 0, 0, 0); var x53 = new Date(1969, 12, 1, 0, 0, 0);
if (Date.prototype !== x53.constructor.prototype) {
throw new Test262Error("#5.3: Date.prototype === x53.constructor.prototype"); assert.sameValue(
} Date.prototype,
x53.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x53.constructor.prototype'
);
var x61 = new Date(1970, 0, 1, 0, 0, 0); var x61 = new Date(1970, 0, 1, 0, 0, 0);
if (typeof x61.constructor.prototype !== "object") {
throw new Test262Error("#6.1: typeof x61.constructor.prototype === 'object'"); assert.sameValue(
} typeof x61.constructor.prototype,
"object",
'The value of `typeof x61.constructor.prototype` is expected to be "object"'
);
var x62 = new Date(1970, 0, 1, 0, 0, 0); var x62 = new Date(1970, 0, 1, 0, 0, 0);
if (!Date.prototype.isPrototypeOf(x62)) { assert(Date.prototype.isPrototypeOf(x62), 'Date.prototype.isPrototypeOf(x62) must return true');
throw new Test262Error('#6.2: Date.prototype.isPrototypeOf(x62)');
}
var x63 = new Date(1970, 0, 1, 0, 0, 0); var x63 = new Date(1970, 0, 1, 0, 0, 0);
if (Date.prototype !== x63.constructor.prototype) {
throw new Test262Error("#6.3: Date.prototype === x63.constructor.prototype"); assert.sameValue(
} Date.prototype,
x63.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x63.constructor.prototype'
);
var x71 = new Date(1999, 11, 31, 23, 59, 59); var x71 = new Date(1999, 11, 31, 23, 59, 59);
if (typeof x71.constructor.prototype !== "object") {
throw new Test262Error("#7.1: typeof x71.constructor.prototype === 'object'"); assert.sameValue(
} typeof x71.constructor.prototype,
"object",
'The value of `typeof x71.constructor.prototype` is expected to be "object"'
);
var x72 = new Date(1999, 11, 31, 23, 59, 59); var x72 = new Date(1999, 11, 31, 23, 59, 59);
if (!Date.prototype.isPrototypeOf(x72)) { assert(Date.prototype.isPrototypeOf(x72), 'Date.prototype.isPrototypeOf(x72) must return true');
throw new Test262Error('#7.2: Date.prototype.isPrototypeOf(x72)');
}
var x73 = new Date(1999, 11, 31, 23, 59, 59); var x73 = new Date(1999, 11, 31, 23, 59, 59);
if (Date.prototype !== x73.constructor.prototype) {
throw new Test262Error("#7.3: Date.prototype === x73.constructor.prototype"); assert.sameValue(
} Date.prototype,
x73.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x73.constructor.prototype'
);
var x81 = new Date(1999, 12, 1, 0, 0, 0); var x81 = new Date(1999, 12, 1, 0, 0, 0);
if (typeof x81.constructor.prototype !== "object") {
throw new Test262Error("#8.1: typeof x81.constructor.prototype === 'object'"); assert.sameValue(
} typeof x81.constructor.prototype,
"object",
'The value of `typeof x81.constructor.prototype` is expected to be "object"'
);
var x82 = new Date(1999, 12, 1, 0, 0, 0); var x82 = new Date(1999, 12, 1, 0, 0, 0);
if (!Date.prototype.isPrototypeOf(x82)) { assert(Date.prototype.isPrototypeOf(x82), 'Date.prototype.isPrototypeOf(x82) must return true');
throw new Test262Error('#8.2: Date.prototype.isPrototypeOf(x82)');
}
var x83 = new Date(1999, 12, 1, 0, 0, 0); var x83 = new Date(1999, 12, 1, 0, 0, 0);
if (Date.prototype !== x83.constructor.prototype) {
throw new Test262Error("#8.3: Date.prototype === x83.constructor.prototype"); assert.sameValue(
} Date.prototype,
x83.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x83.constructor.prototype'
);
var x91 = new Date(2000, 0, 1, 0, 0, 0); var x91 = new Date(2000, 0, 1, 0, 0, 0);
if (typeof x91.constructor.prototype !== "object") {
throw new Test262Error("#9.1: typeof x91.constructor.prototype === 'object'"); assert.sameValue(
} typeof x91.constructor.prototype,
"object",
'The value of `typeof x91.constructor.prototype` is expected to be "object"'
);
var x92 = new Date(2000, 0, 1, 0, 0, 0); var x92 = new Date(2000, 0, 1, 0, 0, 0);
if (!Date.prototype.isPrototypeOf(x92)) { assert(Date.prototype.isPrototypeOf(x92), 'Date.prototype.isPrototypeOf(x92) must return true');
throw new Test262Error('#9.2: Date.prototype.isPrototypeOf(x92)');
}
var x93 = new Date(2000, 0, 1, 0, 0, 0); var x93 = new Date(2000, 0, 1, 0, 0, 0);
if (Date.prototype !== x93.constructor.prototype) {
throw new Test262Error("#9.3: Date.prototype === x93.constructor.prototype"); assert.sameValue(
} Date.prototype,
x93.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x93.constructor.prototype'
);
var x101 = new Date(2099, 11, 31, 23, 59, 59); var x101 = new Date(2099, 11, 31, 23, 59, 59);
if (typeof x101.constructor.prototype !== "object") {
throw new Test262Error("#10.1: typeof x101.constructor.prototype === 'object'"); assert.sameValue(
} typeof x101.constructor.prototype,
"object",
'The value of `typeof x101.constructor.prototype` is expected to be "object"'
);
var x102 = new Date(2099, 11, 31, 23, 59, 59); var x102 = new Date(2099, 11, 31, 23, 59, 59);
if (!Date.prototype.isPrototypeOf(x102)) { assert(Date.prototype.isPrototypeOf(x102), 'Date.prototype.isPrototypeOf(x102) must return true');
throw new Test262Error('#10.2: Date.prototype.isPrototypeOf(x102)');
}
var x103 = new Date(2099, 11, 31, 23, 59, 59); var x103 = new Date(2099, 11, 31, 23, 59, 59);
if (Date.prototype !== x103.constructor.prototype) {
throw new Test262Error("#10.3: Date.prototype === x103.constructor.prototype"); assert.sameValue(
} Date.prototype,
x103.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x103.constructor.prototype'
);
var x111 = new Date(2099, 12, 1, 0, 0, 0); var x111 = new Date(2099, 12, 1, 0, 0, 0);
if (typeof x111.constructor.prototype !== "object") {
throw new Test262Error("#11.1: typeof x111.constructor.prototype === 'object'"); assert.sameValue(
} typeof x111.constructor.prototype,
"object",
'The value of `typeof x111.constructor.prototype` is expected to be "object"'
);
var x112 = new Date(2099, 12, 1, 0, 0, 0); var x112 = new Date(2099, 12, 1, 0, 0, 0);
if (!Date.prototype.isPrototypeOf(x112)) { assert(Date.prototype.isPrototypeOf(x112), 'Date.prototype.isPrototypeOf(x112) must return true');
throw new Test262Error('#11.2: Date.prototype.isPrototypeOf(x112)');
}
var x113 = new Date(2099, 12, 1, 0, 0, 0); var x113 = new Date(2099, 12, 1, 0, 0, 0);
if (Date.prototype !== x113.constructor.prototype) {
throw new Test262Error("#11.3: Date.prototype === x113.constructor.prototype"); assert.sameValue(
} Date.prototype,
x113.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x113.constructor.prototype'
);
var x121 = new Date(2100, 0, 1, 0, 0, 0); var x121 = new Date(2100, 0, 1, 0, 0, 0);
if (typeof x121.constructor.prototype !== "object") {
throw new Test262Error("#12.1: typeof x121.constructor.prototype === 'object'"); assert.sameValue(
} typeof x121.constructor.prototype,
"object",
'The value of `typeof x121.constructor.prototype` is expected to be "object"'
);
var x122 = new Date(2100, 0, 1, 0, 0, 0); var x122 = new Date(2100, 0, 1, 0, 0, 0);
if (!Date.prototype.isPrototypeOf(x122)) { assert(Date.prototype.isPrototypeOf(x122), 'Date.prototype.isPrototypeOf(x122) must return true');
throw new Test262Error('#12.2: Date.prototype.isPrototypeOf(x122)');
}
var x123 = new Date(2100, 0, 1, 0, 0, 0); var x123 = new Date(2100, 0, 1, 0, 0, 0);
if (Date.prototype !== x123.constructor.prototype) {
throw new Test262Error("#12.3: Date.prototype === x123.constructor.prototype"); assert.sameValue(
} Date.prototype,
x123.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x123.constructor.prototype'
);

View File

@ -11,181 +11,229 @@ description: 7 arguments, (year, month, date, hours, minutes, seconds, ms)
---*/ ---*/
var x11 = new Date(1899, 11, 31, 23, 59, 59, 999); var x11 = new Date(1899, 11, 31, 23, 59, 59, 999);
if (typeof x11.constructor.prototype !== "object") {
throw new Test262Error("#1.1: typeof x11.constructor.prototype === 'object'"); assert.sameValue(
} typeof x11.constructor.prototype,
"object",
'The value of `typeof x11.constructor.prototype` is expected to be "object"'
);
var x12 = new Date(1899, 11, 31, 23, 59, 59, 999); var x12 = new Date(1899, 11, 31, 23, 59, 59, 999);
if (!Date.prototype.isPrototypeOf(x12)) { assert(Date.prototype.isPrototypeOf(x12), 'Date.prototype.isPrototypeOf(x12) must return true');
throw new Test262Error('#1.2: Date.prototype.isPrototypeOf(x12)');
}
var x13 = new Date(1899, 11, 31, 23, 59, 59, 999); var x13 = new Date(1899, 11, 31, 23, 59, 59, 999);
if (Date.prototype !== x13.constructor.prototype) {
throw new Test262Error("#1.3: Date.prototype === x13.constructor.prototype"); assert.sameValue(
} Date.prototype,
x13.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x13.constructor.prototype'
);
var x21 = new Date(1899, 12, 1, 0, 0, 0, 0); var x21 = new Date(1899, 12, 1, 0, 0, 0, 0);
if (typeof x21.constructor.prototype !== "object") {
throw new Test262Error("#2.1: typeof x21.constructor.prototype === 'object'"); assert.sameValue(
} typeof x21.constructor.prototype,
"object",
'The value of `typeof x21.constructor.prototype` is expected to be "object"'
);
var x22 = new Date(1899, 12, 1, 0, 0, 0, 0); var x22 = new Date(1899, 12, 1, 0, 0, 0, 0);
if (!Date.prototype.isPrototypeOf(x22)) { assert(Date.prototype.isPrototypeOf(x22), 'Date.prototype.isPrototypeOf(x22) must return true');
throw new Test262Error('#2.2: Date.prototype.isPrototypeOf(x22)');
}
var x23 = new Date(1899, 12, 1, 0, 0, 0, 0); var x23 = new Date(1899, 12, 1, 0, 0, 0, 0);
if (Date.prototype !== x23.constructor.prototype) {
throw new Test262Error("#2.3: Date.prototype === x23.constructor.prototype"); assert.sameValue(
} Date.prototype,
x23.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x23.constructor.prototype'
);
var x31 = new Date(1900, 0, 1, 0, 0, 0, 0); var x31 = new Date(1900, 0, 1, 0, 0, 0, 0);
if (typeof x31.constructor.prototype !== "object") {
throw new Test262Error("#3.1: typeof x31.constructor.prototype === 'object'"); assert.sameValue(
} typeof x31.constructor.prototype,
"object",
'The value of `typeof x31.constructor.prototype` is expected to be "object"'
);
var x32 = new Date(1900, 0, 1, 0, 0, 0, 0); var x32 = new Date(1900, 0, 1, 0, 0, 0, 0);
if (!Date.prototype.isPrototypeOf(x32)) { assert(Date.prototype.isPrototypeOf(x32), 'Date.prototype.isPrototypeOf(x32) must return true');
throw new Test262Error('#3.2: Date.prototype.isPrototypeOf(x32)');
}
var x33 = new Date(1900, 0, 1, 0, 0, 0, 0); var x33 = new Date(1900, 0, 1, 0, 0, 0, 0);
if (Date.prototype !== x33.constructor.prototype) {
throw new Test262Error("#3.3: Date.prototype === x33.constructor.prototype"); assert.sameValue(
} Date.prototype,
x33.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x33.constructor.prototype'
);
var x41 = new Date(1969, 11, 31, 23, 59, 59, 999); var x41 = new Date(1969, 11, 31, 23, 59, 59, 999);
if (typeof x41.constructor.prototype !== "object") {
throw new Test262Error("#4.1: typeof x41.constructor.prototype === 'object'"); assert.sameValue(
} typeof x41.constructor.prototype,
"object",
'The value of `typeof x41.constructor.prototype` is expected to be "object"'
);
var x42 = new Date(1969, 11, 31, 23, 59, 59, 999); var x42 = new Date(1969, 11, 31, 23, 59, 59, 999);
if (!Date.prototype.isPrototypeOf(x42)) { assert(Date.prototype.isPrototypeOf(x42), 'Date.prototype.isPrototypeOf(x42) must return true');
throw new Test262Error('#4.2: Date.prototype.isPrototypeOf(x42)');
}
var x43 = new Date(1969, 11, 31, 23, 59, 59, 999); var x43 = new Date(1969, 11, 31, 23, 59, 59, 999);
if (Date.prototype !== x43.constructor.prototype) {
throw new Test262Error("#4.3: Date.prototype === x43.constructor.prototype"); assert.sameValue(
} Date.prototype,
x43.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x43.constructor.prototype'
);
var x51 = new Date(1969, 12, 1, 0, 0, 0, 0); var x51 = new Date(1969, 12, 1, 0, 0, 0, 0);
if (typeof x51.constructor.prototype !== "object") {
throw new Test262Error("#5.1: typeof x51.constructor.prototype === 'object'"); assert.sameValue(
} typeof x51.constructor.prototype,
"object",
'The value of `typeof x51.constructor.prototype` is expected to be "object"'
);
var x52 = new Date(1969, 12, 1, 0, 0, 0, 0); var x52 = new Date(1969, 12, 1, 0, 0, 0, 0);
if (!Date.prototype.isPrototypeOf(x52)) { assert(Date.prototype.isPrototypeOf(x52), 'Date.prototype.isPrototypeOf(x52) must return true');
throw new Test262Error('#5.2: Date.prototype.isPrototypeOf(x52)');
}
var x53 = new Date(1969, 12, 1, 0, 0, 0, 0); var x53 = new Date(1969, 12, 1, 0, 0, 0, 0);
if (Date.prototype !== x53.constructor.prototype) {
throw new Test262Error("#5.3: Date.prototype === x53.constructor.prototype"); assert.sameValue(
} Date.prototype,
x53.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x53.constructor.prototype'
);
var x61 = new Date(1970, 0, 1, 0, 0, 0, 0); var x61 = new Date(1970, 0, 1, 0, 0, 0, 0);
if (typeof x61.constructor.prototype !== "object") {
throw new Test262Error("#6.1: typeof x61.constructor.prototype === 'object'"); assert.sameValue(
} typeof x61.constructor.prototype,
"object",
'The value of `typeof x61.constructor.prototype` is expected to be "object"'
);
var x62 = new Date(1970, 0, 1, 0, 0, 0, 0); var x62 = new Date(1970, 0, 1, 0, 0, 0, 0);
if (!Date.prototype.isPrototypeOf(x62)) { assert(Date.prototype.isPrototypeOf(x62), 'Date.prototype.isPrototypeOf(x62) must return true');
throw new Test262Error('#6.2: Date.prototype.isPrototypeOf(x62)');
}
var x63 = new Date(1970, 0, 1, 0, 0, 0, 0); var x63 = new Date(1970, 0, 1, 0, 0, 0, 0);
if (Date.prototype !== x63.constructor.prototype) {
throw new Test262Error("#6.3: Date.prototype === x63.constructor.prototype"); assert.sameValue(
} Date.prototype,
x63.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x63.constructor.prototype'
);
var x71 = new Date(1999, 11, 31, 23, 59, 59, 999); var x71 = new Date(1999, 11, 31, 23, 59, 59, 999);
if (typeof x71.constructor.prototype !== "object") {
throw new Test262Error("#7.1: typeof x71.constructor.prototype === 'object'"); assert.sameValue(
} typeof x71.constructor.prototype,
"object",
'The value of `typeof x71.constructor.prototype` is expected to be "object"'
);
var x72 = new Date(1999, 11, 31, 23, 59, 59, 999); var x72 = new Date(1999, 11, 31, 23, 59, 59, 999);
if (!Date.prototype.isPrototypeOf(x72)) { assert(Date.prototype.isPrototypeOf(x72), 'Date.prototype.isPrototypeOf(x72) must return true');
throw new Test262Error('#7.2: Date.prototype.isPrototypeOf(x72)');
}
var x73 = new Date(1999, 11, 31, 23, 59, 59, 999); var x73 = new Date(1999, 11, 31, 23, 59, 59, 999);
if (Date.prototype !== x73.constructor.prototype) {
throw new Test262Error("#7.3: Date.prototype === x73.constructor.prototype"); assert.sameValue(
} Date.prototype,
x73.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x73.constructor.prototype'
);
var x81 = new Date(1999, 12, 1, 0, 0, 0, 0); var x81 = new Date(1999, 12, 1, 0, 0, 0, 0);
if (typeof x81.constructor.prototype !== "object") {
throw new Test262Error("#8.1: typeof x81.constructor.prototype === 'object'"); assert.sameValue(
} typeof x81.constructor.prototype,
"object",
'The value of `typeof x81.constructor.prototype` is expected to be "object"'
);
var x82 = new Date(1999, 12, 1, 0, 0, 0, 0); var x82 = new Date(1999, 12, 1, 0, 0, 0, 0);
if (!Date.prototype.isPrototypeOf(x82)) { assert(Date.prototype.isPrototypeOf(x82), 'Date.prototype.isPrototypeOf(x82) must return true');
throw new Test262Error('#8.2: Date.prototype.isPrototypeOf(x82)');
}
var x83 = new Date(1999, 12, 1, 0, 0, 0, 0); var x83 = new Date(1999, 12, 1, 0, 0, 0, 0);
if (Date.prototype !== x83.constructor.prototype) {
throw new Test262Error("#8.3: Date.prototype === x83.constructor.prototype"); assert.sameValue(
} Date.prototype,
x83.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x83.constructor.prototype'
);
var x91 = new Date(2000, 0, 1, 0, 0, 0, 0); var x91 = new Date(2000, 0, 1, 0, 0, 0, 0);
if (typeof x91.constructor.prototype !== "object") {
throw new Test262Error("#9.1: typeof x91.constructor.prototype === 'object'"); assert.sameValue(
} typeof x91.constructor.prototype,
"object",
'The value of `typeof x91.constructor.prototype` is expected to be "object"'
);
var x92 = new Date(2000, 0, 1, 0, 0, 0, 0); var x92 = new Date(2000, 0, 1, 0, 0, 0, 0);
if (!Date.prototype.isPrototypeOf(x92)) { assert(Date.prototype.isPrototypeOf(x92), 'Date.prototype.isPrototypeOf(x92) must return true');
throw new Test262Error('#9.2: Date.prototype.isPrototypeOf(x92)');
}
var x93 = new Date(2000, 0, 1, 0, 0, 0, 0); var x93 = new Date(2000, 0, 1, 0, 0, 0, 0);
if (Date.prototype !== x93.constructor.prototype) {
throw new Test262Error("#9.3: Date.prototype === x93.constructor.prototype"); assert.sameValue(
} Date.prototype,
x93.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x93.constructor.prototype'
);
var x101 = new Date(2099, 11, 31, 23, 59, 59, 999); var x101 = new Date(2099, 11, 31, 23, 59, 59, 999);
if (typeof x101.constructor.prototype !== "object") {
throw new Test262Error("#10.1: typeof x101.constructor.prototype === 'object'"); assert.sameValue(
} typeof x101.constructor.prototype,
"object",
'The value of `typeof x101.constructor.prototype` is expected to be "object"'
);
var x102 = new Date(2099, 11, 31, 23, 59, 59, 999); var x102 = new Date(2099, 11, 31, 23, 59, 59, 999);
if (!Date.prototype.isPrototypeOf(x102)) { assert(Date.prototype.isPrototypeOf(x102), 'Date.prototype.isPrototypeOf(x102) must return true');
throw new Test262Error('#10.2: Date.prototype.isPrototypeOf(x102)');
}
var x103 = new Date(2099, 11, 31, 23, 59, 59, 999); var x103 = new Date(2099, 11, 31, 23, 59, 59, 999);
if (Date.prototype !== x103.constructor.prototype) {
throw new Test262Error("#10.3: Date.prototype === x103.constructor.prototype"); assert.sameValue(
} Date.prototype,
x103.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x103.constructor.prototype'
);
var x111 = new Date(2099, 12, 1, 0, 0, 0, 0); var x111 = new Date(2099, 12, 1, 0, 0, 0, 0);
if (typeof x111.constructor.prototype !== "object") {
throw new Test262Error("#11.1: typeof x111.constructor.prototype === 'object'"); assert.sameValue(
} typeof x111.constructor.prototype,
"object",
'The value of `typeof x111.constructor.prototype` is expected to be "object"'
);
var x112 = new Date(2099, 12, 1, 0, 0, 0, 0); var x112 = new Date(2099, 12, 1, 0, 0, 0, 0);
if (!Date.prototype.isPrototypeOf(x112)) { assert(Date.prototype.isPrototypeOf(x112), 'Date.prototype.isPrototypeOf(x112) must return true');
throw new Test262Error('#11.2: Date.prototype.isPrototypeOf(x112)');
}
var x113 = new Date(2099, 12, 1, 0, 0, 0, 0); var x113 = new Date(2099, 12, 1, 0, 0, 0, 0);
if (Date.prototype !== x113.constructor.prototype) {
throw new Test262Error("#11.3: Date.prototype === x113.constructor.prototype"); assert.sameValue(
} Date.prototype,
x113.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x113.constructor.prototype'
);
var x121 = new Date(2100, 0, 1, 0, 0, 0, 0); var x121 = new Date(2100, 0, 1, 0, 0, 0, 0);
if (typeof x121.constructor.prototype !== "object") {
throw new Test262Error("#12.1: typeof x121.constructor.prototype === 'object'"); assert.sameValue(
} typeof x121.constructor.prototype,
"object",
'The value of `typeof x121.constructor.prototype` is expected to be "object"'
);
var x122 = new Date(2100, 0, 1, 0, 0, 0, 0); var x122 = new Date(2100, 0, 1, 0, 0, 0, 0);
if (!Date.prototype.isPrototypeOf(x122)) { assert(Date.prototype.isPrototypeOf(x122), 'Date.prototype.isPrototypeOf(x122) must return true');
throw new Test262Error('#12.2: Date.prototype.isPrototypeOf(x122)');
}
var x123 = new Date(2100, 0, 1, 0, 0, 0, 0); var x123 = new Date(2100, 0, 1, 0, 0, 0, 0);
if (Date.prototype !== x123.constructor.prototype) {
throw new Test262Error("#12.3: Date.prototype === x123.constructor.prototype"); assert.sameValue(
} Date.prototype,
x123.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x123.constructor.prototype'
);

View File

@ -12,61 +12,97 @@ description: >
---*/ ---*/
var x1 = new Date(1899, 11); var x1 = new Date(1899, 11);
if (Object.prototype.toString.call(x1) !== "[object Date]") {
throw new Test262Error("#1: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x1),
"[object Date]",
'Object.prototype.toString.call(new Date(1899, 11)) must return "[object Date]"'
);
var x2 = new Date(1899, 12); var x2 = new Date(1899, 12);
if (Object.prototype.toString.call(x2) !== "[object Date]") {
throw new Test262Error("#2: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x2),
"[object Date]",
'Object.prototype.toString.call(new Date(1899, 12)) must return "[object Date]"'
);
var x3 = new Date(1900, 0); var x3 = new Date(1900, 0);
if (Object.prototype.toString.call(x3) !== "[object Date]") {
throw new Test262Error("#3: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x3),
"[object Date]",
'Object.prototype.toString.call(new Date(1900, 0)) must return "[object Date]"'
);
var x4 = new Date(1969, 11); var x4 = new Date(1969, 11);
if (Object.prototype.toString.call(x4) !== "[object Date]") {
throw new Test262Error("#4: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x4),
"[object Date]",
'Object.prototype.toString.call(new Date(1969, 11)) must return "[object Date]"'
);
var x5 = new Date(1969, 12); var x5 = new Date(1969, 12);
if (Object.prototype.toString.call(x5) !== "[object Date]") {
throw new Test262Error("#5: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x5),
"[object Date]",
'Object.prototype.toString.call(new Date(1969, 12)) must return "[object Date]"'
);
var x6 = new Date(1970, 0); var x6 = new Date(1970, 0);
if (Object.prototype.toString.call(x6) !== "[object Date]") {
throw new Test262Error("#6: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x6),
"[object Date]",
'Object.prototype.toString.call(new Date(1970, 0)) must return "[object Date]"'
);
var x7 = new Date(1999, 11); var x7 = new Date(1999, 11);
if (Object.prototype.toString.call(x7) !== "[object Date]") {
throw new Test262Error("#7: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x7),
"[object Date]",
'Object.prototype.toString.call(new Date(1999, 11)) must return "[object Date]"'
);
var x8 = new Date(1999, 12); var x8 = new Date(1999, 12);
if (Object.prototype.toString.call(x8) !== "[object Date]") {
throw new Test262Error("#8: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x8),
"[object Date]",
'Object.prototype.toString.call(new Date(1999, 12)) must return "[object Date]"'
);
var x9 = new Date(2000, 0); var x9 = new Date(2000, 0);
if (Object.prototype.toString.call(x9) !== "[object Date]") {
throw new Test262Error("#9: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x9),
"[object Date]",
'Object.prototype.toString.call(new Date(2000, 0)) must return "[object Date]"'
);
var x10 = new Date(2099, 11); var x10 = new Date(2099, 11);
if (Object.prototype.toString.call(x10) !== "[object Date]") {
throw new Test262Error("#10: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x10),
"[object Date]",
'Object.prototype.toString.call(new Date(2099, 11)) must return "[object Date]"'
);
var x11 = new Date(2099, 12); var x11 = new Date(2099, 12);
if (Object.prototype.toString.call(x11) !== "[object Date]") {
throw new Test262Error("#11: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x11),
"[object Date]",
'Object.prototype.toString.call(new Date(2099, 12)) must return "[object Date]"'
);
var x12 = new Date(2100, 0); var x12 = new Date(2100, 0);
if (Object.prototype.toString.call(x12) !== "[object Date]") {
throw new Test262Error("#12: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x12),
"[object Date]",
'Object.prototype.toString.call(new Date(2100, 0)) must return "[object Date]"'
);

View File

@ -14,61 +14,37 @@ description: >
Date.prototype.toString = Object.prototype.toString; Date.prototype.toString = Object.prototype.toString;
var x1 = new Date(1899, 11); var x1 = new Date(1899, 11);
if (x1.toString() !== "[object Date]") { assert.sameValue(x1.toString(), "[object Date]", 'x1.toString() must return "[object Date]"');
throw new Test262Error("#1: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x2 = new Date(1899, 12); var x2 = new Date(1899, 12);
if (x2.toString() !== "[object Date]") { assert.sameValue(x2.toString(), "[object Date]", 'x2.toString() must return "[object Date]"');
throw new Test262Error("#2: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x3 = new Date(1900, 0); var x3 = new Date(1900, 0);
if (x3.toString() !== "[object Date]") { assert.sameValue(x3.toString(), "[object Date]", 'x3.toString() must return "[object Date]"');
throw new Test262Error("#3: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x4 = new Date(1969, 11); var x4 = new Date(1969, 11);
if (x4.toString() !== "[object Date]") { assert.sameValue(x4.toString(), "[object Date]", 'x4.toString() must return "[object Date]"');
throw new Test262Error("#4: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x5 = new Date(1969, 12); var x5 = new Date(1969, 12);
if (x5.toString() !== "[object Date]") { assert.sameValue(x5.toString(), "[object Date]", 'x5.toString() must return "[object Date]"');
throw new Test262Error("#5: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x6 = new Date(1970, 0); var x6 = new Date(1970, 0);
if (x6.toString() !== "[object Date]") { assert.sameValue(x6.toString(), "[object Date]", 'x6.toString() must return "[object Date]"');
throw new Test262Error("#6: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x7 = new Date(1999, 11); var x7 = new Date(1999, 11);
if (x7.toString() !== "[object Date]") { assert.sameValue(x7.toString(), "[object Date]", 'x7.toString() must return "[object Date]"');
throw new Test262Error("#7: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x8 = new Date(1999, 12); var x8 = new Date(1999, 12);
if (x8.toString() !== "[object Date]") { assert.sameValue(x8.toString(), "[object Date]", 'x8.toString() must return "[object Date]"');
throw new Test262Error("#8: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x9 = new Date(2000, 0); var x9 = new Date(2000, 0);
if (x9.toString() !== "[object Date]") { assert.sameValue(x9.toString(), "[object Date]", 'x9.toString() must return "[object Date]"');
throw new Test262Error("#9: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x10 = new Date(2099, 11); var x10 = new Date(2099, 11);
if (x10.toString() !== "[object Date]") { assert.sameValue(x10.toString(), "[object Date]", 'x10.toString() must return "[object Date]"');
throw new Test262Error("#10: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x11 = new Date(2099, 12); var x11 = new Date(2099, 12);
if (x11.toString() !== "[object Date]") { assert.sameValue(x11.toString(), "[object Date]", 'x11.toString() must return "[object Date]"');
throw new Test262Error("#11: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x12 = new Date(2100, 0); var x12 = new Date(2100, 0);
if (x12.toString() !== "[object Date]") { assert.sameValue(x12.toString(), "[object Date]", 'x12.toString() must return "[object Date]"');
throw new Test262Error("#12: The [[Class]] property of the newly constructed object is set to 'Date'");
}

View File

@ -12,61 +12,97 @@ description: >
---*/ ---*/
var x1 = new Date(1899, 11, 31); var x1 = new Date(1899, 11, 31);
if (Object.prototype.toString.call(x1) !== "[object Date]") {
throw new Test262Error("#1: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x1),
"[object Date]",
'Object.prototype.toString.call(new Date(1899, 11, 31)) must return "[object Date]"'
);
var x2 = new Date(1899, 12, 1); var x2 = new Date(1899, 12, 1);
if (Object.prototype.toString.call(x2) !== "[object Date]") {
throw new Test262Error("#2: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x2),
"[object Date]",
'Object.prototype.toString.call(new Date(1899, 12, 1)) must return "[object Date]"'
);
var x3 = new Date(1900, 0, 1); var x3 = new Date(1900, 0, 1);
if (Object.prototype.toString.call(x3) !== "[object Date]") {
throw new Test262Error("#3: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x3),
"[object Date]",
'Object.prototype.toString.call(new Date(1900, 0, 1)) must return "[object Date]"'
);
var x4 = new Date(1969, 11, 31); var x4 = new Date(1969, 11, 31);
if (Object.prototype.toString.call(x4) !== "[object Date]") {
throw new Test262Error("#4: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x4),
"[object Date]",
'Object.prototype.toString.call(new Date(1969, 11, 31)) must return "[object Date]"'
);
var x5 = new Date(1969, 12, 1); var x5 = new Date(1969, 12, 1);
if (Object.prototype.toString.call(x5) !== "[object Date]") {
throw new Test262Error("#5: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x5),
"[object Date]",
'Object.prototype.toString.call(new Date(1969, 12, 1)) must return "[object Date]"'
);
var x6 = new Date(1970, 0, 1); var x6 = new Date(1970, 0, 1);
if (Object.prototype.toString.call(x6) !== "[object Date]") {
throw new Test262Error("#6: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x6),
"[object Date]",
'Object.prototype.toString.call(new Date(1970, 0, 1)) must return "[object Date]"'
);
var x7 = new Date(1999, 11, 31); var x7 = new Date(1999, 11, 31);
if (Object.prototype.toString.call(x7) !== "[object Date]") {
throw new Test262Error("#7: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x7),
"[object Date]",
'Object.prototype.toString.call(new Date(1999, 11, 31)) must return "[object Date]"'
);
var x8 = new Date(1999, 12, 1); var x8 = new Date(1999, 12, 1);
if (Object.prototype.toString.call(x8) !== "[object Date]") {
throw new Test262Error("#8: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x8),
"[object Date]",
'Object.prototype.toString.call(new Date(1999, 12, 1)) must return "[object Date]"'
);
var x9 = new Date(2000, 0, 1); var x9 = new Date(2000, 0, 1);
if (Object.prototype.toString.call(x9) !== "[object Date]") {
throw new Test262Error("#9: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x9),
"[object Date]",
'Object.prototype.toString.call(new Date(2000, 0, 1)) must return "[object Date]"'
);
var x10 = new Date(2099, 11, 31); var x10 = new Date(2099, 11, 31);
if (Object.prototype.toString.call(x10) !== "[object Date]") {
throw new Test262Error("#10: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x10),
"[object Date]",
'Object.prototype.toString.call(new Date(2099, 11, 31)) must return "[object Date]"'
);
var x11 = new Date(2099, 12, 1); var x11 = new Date(2099, 12, 1);
if (Object.prototype.toString.call(x11) !== "[object Date]") {
throw new Test262Error("#11: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x11),
"[object Date]",
'Object.prototype.toString.call(new Date(2099, 12, 1)) must return "[object Date]"'
);
var x12 = new Date(2100, 0, 1); var x12 = new Date(2100, 0, 1);
if (Object.prototype.toString.call(x12) !== "[object Date]") {
throw new Test262Error("#12: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x12),
"[object Date]",
'Object.prototype.toString.call(new Date(2100, 0, 1)) must return "[object Date]"'
);

View File

@ -14,61 +14,37 @@ description: >
Date.prototype.toString = Object.prototype.toString; Date.prototype.toString = Object.prototype.toString;
var x1 = new Date(1899, 11, 31); var x1 = new Date(1899, 11, 31);
if (x1.toString() !== "[object Date]") { assert.sameValue(x1.toString(), "[object Date]", 'x1.toString() must return "[object Date]"');
throw new Test262Error("#1: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x2 = new Date(1899, 12, 1); var x2 = new Date(1899, 12, 1);
if (x2.toString() !== "[object Date]") { assert.sameValue(x2.toString(), "[object Date]", 'x2.toString() must return "[object Date]"');
throw new Test262Error("#2: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x3 = new Date(1900, 0, 1); var x3 = new Date(1900, 0, 1);
if (x3.toString() !== "[object Date]") { assert.sameValue(x3.toString(), "[object Date]", 'x3.toString() must return "[object Date]"');
throw new Test262Error("#3: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x4 = new Date(1969, 11, 31); var x4 = new Date(1969, 11, 31);
if (x4.toString() !== "[object Date]") { assert.sameValue(x4.toString(), "[object Date]", 'x4.toString() must return "[object Date]"');
throw new Test262Error("#4: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x5 = new Date(1969, 12, 1); var x5 = new Date(1969, 12, 1);
if (x5.toString() !== "[object Date]") { assert.sameValue(x5.toString(), "[object Date]", 'x5.toString() must return "[object Date]"');
throw new Test262Error("#5: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x6 = new Date(1970, 0, 1); var x6 = new Date(1970, 0, 1);
if (x6.toString() !== "[object Date]") { assert.sameValue(x6.toString(), "[object Date]", 'x6.toString() must return "[object Date]"');
throw new Test262Error("#6: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x7 = new Date(1999, 11, 31); var x7 = new Date(1999, 11, 31);
if (x7.toString() !== "[object Date]") { assert.sameValue(x7.toString(), "[object Date]", 'x7.toString() must return "[object Date]"');
throw new Test262Error("#7: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x8 = new Date(1999, 12, 1); var x8 = new Date(1999, 12, 1);
if (x8.toString() !== "[object Date]") { assert.sameValue(x8.toString(), "[object Date]", 'x8.toString() must return "[object Date]"');
throw new Test262Error("#8: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x9 = new Date(2000, 0, 1); var x9 = new Date(2000, 0, 1);
if (x9.toString() !== "[object Date]") { assert.sameValue(x9.toString(), "[object Date]", 'x9.toString() must return "[object Date]"');
throw new Test262Error("#9: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x10 = new Date(2099, 11, 31); var x10 = new Date(2099, 11, 31);
if (x10.toString() !== "[object Date]") { assert.sameValue(x10.toString(), "[object Date]", 'x10.toString() must return "[object Date]"');
throw new Test262Error("#10: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x11 = new Date(2099, 12, 1); var x11 = new Date(2099, 12, 1);
if (x11.toString() !== "[object Date]") { assert.sameValue(x11.toString(), "[object Date]", 'x11.toString() must return "[object Date]"');
throw new Test262Error("#11: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x12 = new Date(2100, 0, 1); var x12 = new Date(2100, 0, 1);
if (x12.toString() !== "[object Date]") { assert.sameValue(x12.toString(), "[object Date]", 'x12.toString() must return "[object Date]"');
throw new Test262Error("#12: The [[Class]] property of the newly constructed object is set to 'Date'");
}

View File

@ -12,61 +12,97 @@ description: >
---*/ ---*/
var x1 = new Date(1899, 11, 31, 23); var x1 = new Date(1899, 11, 31, 23);
if (Object.prototype.toString.call(x1) !== "[object Date]") {
throw new Test262Error("#1: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x1),
"[object Date]",
'Object.prototype.toString.call(new Date(1899, 11, 31, 23)) must return "[object Date]"'
);
var x2 = new Date(1899, 12, 1, 0); var x2 = new Date(1899, 12, 1, 0);
if (Object.prototype.toString.call(x2) !== "[object Date]") {
throw new Test262Error("#2: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x2),
"[object Date]",
'Object.prototype.toString.call(new Date(1899, 12, 1, 0)) must return "[object Date]"'
);
var x3 = new Date(1900, 0, 1, 0); var x3 = new Date(1900, 0, 1, 0);
if (Object.prototype.toString.call(x3) !== "[object Date]") {
throw new Test262Error("#3: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x3),
"[object Date]",
'Object.prototype.toString.call(new Date(1900, 0, 1, 0)) must return "[object Date]"'
);
var x4 = new Date(1969, 11, 31, 23); var x4 = new Date(1969, 11, 31, 23);
if (Object.prototype.toString.call(x4) !== "[object Date]") {
throw new Test262Error("#4: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x4),
"[object Date]",
'Object.prototype.toString.call(new Date(1969, 11, 31, 23)) must return "[object Date]"'
);
var x5 = new Date(1969, 12, 1, 0); var x5 = new Date(1969, 12, 1, 0);
if (Object.prototype.toString.call(x5) !== "[object Date]") {
throw new Test262Error("#5: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x5),
"[object Date]",
'Object.prototype.toString.call(new Date(1969, 12, 1, 0)) must return "[object Date]"'
);
var x6 = new Date(1970, 0, 1, 0); var x6 = new Date(1970, 0, 1, 0);
if (Object.prototype.toString.call(x6) !== "[object Date]") {
throw new Test262Error("#6: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x6),
"[object Date]",
'Object.prototype.toString.call(new Date(1970, 0, 1, 0)) must return "[object Date]"'
);
var x7 = new Date(1999, 11, 31, 23); var x7 = new Date(1999, 11, 31, 23);
if (Object.prototype.toString.call(x7) !== "[object Date]") {
throw new Test262Error("#7: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x7),
"[object Date]",
'Object.prototype.toString.call(new Date(1999, 11, 31, 23)) must return "[object Date]"'
);
var x8 = new Date(1999, 12, 1, 0); var x8 = new Date(1999, 12, 1, 0);
if (Object.prototype.toString.call(x8) !== "[object Date]") {
throw new Test262Error("#8: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x8),
"[object Date]",
'Object.prototype.toString.call(new Date(1999, 12, 1, 0)) must return "[object Date]"'
);
var x9 = new Date(2000, 0, 1, 0); var x9 = new Date(2000, 0, 1, 0);
if (Object.prototype.toString.call(x9) !== "[object Date]") {
throw new Test262Error("#9: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x9),
"[object Date]",
'Object.prototype.toString.call(new Date(2000, 0, 1, 0)) must return "[object Date]"'
);
var x10 = new Date(2099, 11, 31, 23); var x10 = new Date(2099, 11, 31, 23);
if (Object.prototype.toString.call(x10) !== "[object Date]") {
throw new Test262Error("#10: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x10),
"[object Date]",
'Object.prototype.toString.call(new Date(2099, 11, 31, 23)) must return "[object Date]"'
);
var x11 = new Date(2099, 12, 1, 0); var x11 = new Date(2099, 12, 1, 0);
if (Object.prototype.toString.call(x11) !== "[object Date]") {
throw new Test262Error("#11: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x11),
"[object Date]",
'Object.prototype.toString.call(new Date(2099, 12, 1, 0)) must return "[object Date]"'
);
var x12 = new Date(2100, 0, 1, 0); var x12 = new Date(2100, 0, 1, 0);
if (Object.prototype.toString.call(x12) !== "[object Date]") {
throw new Test262Error("#12: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x12),
"[object Date]",
'Object.prototype.toString.call(new Date(2100, 0, 1, 0)) must return "[object Date]"'
);

View File

@ -14,61 +14,37 @@ description: >
Date.prototype.toString = Object.prototype.toString; Date.prototype.toString = Object.prototype.toString;
var x1 = new Date(1899, 11, 31, 23); var x1 = new Date(1899, 11, 31, 23);
if (x1.toString() !== "[object Date]") { assert.sameValue(x1.toString(), "[object Date]", 'x1.toString() must return "[object Date]"');
throw new Test262Error("#1: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x2 = new Date(1899, 12, 1, 0); var x2 = new Date(1899, 12, 1, 0);
if (x2.toString() !== "[object Date]") { assert.sameValue(x2.toString(), "[object Date]", 'x2.toString() must return "[object Date]"');
throw new Test262Error("#2: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x3 = new Date(1900, 0, 1, 0); var x3 = new Date(1900, 0, 1, 0);
if (x3.toString() !== "[object Date]") { assert.sameValue(x3.toString(), "[object Date]", 'x3.toString() must return "[object Date]"');
throw new Test262Error("#3: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x4 = new Date(1969, 11, 31, 23); var x4 = new Date(1969, 11, 31, 23);
if (x4.toString() !== "[object Date]") { assert.sameValue(x4.toString(), "[object Date]", 'x4.toString() must return "[object Date]"');
throw new Test262Error("#4: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x5 = new Date(1969, 12, 1, 0); var x5 = new Date(1969, 12, 1, 0);
if (x5.toString() !== "[object Date]") { assert.sameValue(x5.toString(), "[object Date]", 'x5.toString() must return "[object Date]"');
throw new Test262Error("#5: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x6 = new Date(1970, 0, 1, 0); var x6 = new Date(1970, 0, 1, 0);
if (x6.toString() !== "[object Date]") { assert.sameValue(x6.toString(), "[object Date]", 'x6.toString() must return "[object Date]"');
throw new Test262Error("#6: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x7 = new Date(1999, 11, 31, 23); var x7 = new Date(1999, 11, 31, 23);
if (x7.toString() !== "[object Date]") { assert.sameValue(x7.toString(), "[object Date]", 'x7.toString() must return "[object Date]"');
throw new Test262Error("#7: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x8 = new Date(1999, 12, 1, 0); var x8 = new Date(1999, 12, 1, 0);
if (x8.toString() !== "[object Date]") { assert.sameValue(x8.toString(), "[object Date]", 'x8.toString() must return "[object Date]"');
throw new Test262Error("#8: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x9 = new Date(2000, 0, 1, 0); var x9 = new Date(2000, 0, 1, 0);
if (x9.toString() !== "[object Date]") { assert.sameValue(x9.toString(), "[object Date]", 'x9.toString() must return "[object Date]"');
throw new Test262Error("#9: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x10 = new Date(2099, 11, 31, 23); var x10 = new Date(2099, 11, 31, 23);
if (x10.toString() !== "[object Date]") { assert.sameValue(x10.toString(), "[object Date]", 'x10.toString() must return "[object Date]"');
throw new Test262Error("#10: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x11 = new Date(2099, 12, 1, 0); var x11 = new Date(2099, 12, 1, 0);
if (x11.toString() !== "[object Date]") { assert.sameValue(x11.toString(), "[object Date]", 'x11.toString() must return "[object Date]"');
throw new Test262Error("#11: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x12 = new Date(2100, 0, 1, 0); var x12 = new Date(2100, 0, 1, 0);
if (x12.toString() !== "[object Date]") { assert.sameValue(x12.toString(), "[object Date]", 'x12.toString() must return "[object Date]"');
throw new Test262Error("#12: The [[Class]] property of the newly constructed object is set to 'Date'");
}

View File

@ -12,61 +12,97 @@ description: >
---*/ ---*/
var x1 = new Date(1899, 11, 31, 23, 59); var x1 = new Date(1899, 11, 31, 23, 59);
if (Object.prototype.toString.call(x1) !== "[object Date]") {
throw new Test262Error("#1: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x1),
"[object Date]",
'Object.prototype.toString.call(new Date(1899, 11, 31, 23, 59)) must return "[object Date]"'
);
var x2 = new Date(1899, 12, 1, 0, 0); var x2 = new Date(1899, 12, 1, 0, 0);
if (Object.prototype.toString.call(x2) !== "[object Date]") {
throw new Test262Error("#2: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x2),
"[object Date]",
'Object.prototype.toString.call(new Date(1899, 12, 1, 0, 0)) must return "[object Date]"'
);
var x3 = new Date(1900, 0, 1, 0, 0); var x3 = new Date(1900, 0, 1, 0, 0);
if (Object.prototype.toString.call(x3) !== "[object Date]") {
throw new Test262Error("#3: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x3),
"[object Date]",
'Object.prototype.toString.call(new Date(1900, 0, 1, 0, 0)) must return "[object Date]"'
);
var x4 = new Date(1969, 11, 31, 23, 59); var x4 = new Date(1969, 11, 31, 23, 59);
if (Object.prototype.toString.call(x4) !== "[object Date]") {
throw new Test262Error("#4: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x4),
"[object Date]",
'Object.prototype.toString.call(new Date(1969, 11, 31, 23, 59)) must return "[object Date]"'
);
var x5 = new Date(1969, 12, 1, 0, 0); var x5 = new Date(1969, 12, 1, 0, 0);
if (Object.prototype.toString.call(x5) !== "[object Date]") {
throw new Test262Error("#5: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x5),
"[object Date]",
'Object.prototype.toString.call(new Date(1969, 12, 1, 0, 0)) must return "[object Date]"'
);
var x6 = new Date(1970, 0, 1, 0, 0); var x6 = new Date(1970, 0, 1, 0, 0);
if (Object.prototype.toString.call(x6) !== "[object Date]") {
throw new Test262Error("#6: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x6),
"[object Date]",
'Object.prototype.toString.call(new Date(1970, 0, 1, 0, 0)) must return "[object Date]"'
);
var x7 = new Date(1999, 11, 31, 23, 59); var x7 = new Date(1999, 11, 31, 23, 59);
if (Object.prototype.toString.call(x7) !== "[object Date]") {
throw new Test262Error("#7: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x7),
"[object Date]",
'Object.prototype.toString.call(new Date(1999, 11, 31, 23, 59)) must return "[object Date]"'
);
var x8 = new Date(1999, 12, 1, 0, 0); var x8 = new Date(1999, 12, 1, 0, 0);
if (Object.prototype.toString.call(x8) !== "[object Date]") {
throw new Test262Error("#8: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x8),
"[object Date]",
'Object.prototype.toString.call(new Date(1999, 12, 1, 0, 0)) must return "[object Date]"'
);
var x9 = new Date(2000, 0, 1, 0, 0); var x9 = new Date(2000, 0, 1, 0, 0);
if (Object.prototype.toString.call(x9) !== "[object Date]") {
throw new Test262Error("#9: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x9),
"[object Date]",
'Object.prototype.toString.call(new Date(2000, 0, 1, 0, 0)) must return "[object Date]"'
);
var x10 = new Date(2099, 11, 31, 23, 59); var x10 = new Date(2099, 11, 31, 23, 59);
if (Object.prototype.toString.call(x10) !== "[object Date]") {
throw new Test262Error("#10: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x10),
"[object Date]",
'Object.prototype.toString.call(new Date(2099, 11, 31, 23, 59)) must return "[object Date]"'
);
var x11 = new Date(2099, 12, 1, 0, 0); var x11 = new Date(2099, 12, 1, 0, 0);
if (Object.prototype.toString.call(x11) !== "[object Date]") {
throw new Test262Error("#11: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x11),
"[object Date]",
'Object.prototype.toString.call(new Date(2099, 12, 1, 0, 0)) must return "[object Date]"'
);
var x12 = new Date(2100, 0, 1, 0, 0); var x12 = new Date(2100, 0, 1, 0, 0);
if (Object.prototype.toString.call(x12) !== "[object Date]") {
throw new Test262Error("#12: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x12),
"[object Date]",
'Object.prototype.toString.call(new Date(2100, 0, 1, 0, 0)) must return "[object Date]"'
);

View File

@ -14,61 +14,37 @@ description: >
Date.prototype.toString = Object.prototype.toString; Date.prototype.toString = Object.prototype.toString;
var x1 = new Date(1899, 11, 31, 23, 59); var x1 = new Date(1899, 11, 31, 23, 59);
if (x1.toString() !== "[object Date]") { assert.sameValue(x1.toString(), "[object Date]", 'x1.toString() must return "[object Date]"');
throw new Test262Error("#1: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x2 = new Date(1899, 12, 1, 0, 0); var x2 = new Date(1899, 12, 1, 0, 0);
if (x2.toString() !== "[object Date]") { assert.sameValue(x2.toString(), "[object Date]", 'x2.toString() must return "[object Date]"');
throw new Test262Error("#2: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x3 = new Date(1900, 0, 1, 0, 0); var x3 = new Date(1900, 0, 1, 0, 0);
if (x3.toString() !== "[object Date]") { assert.sameValue(x3.toString(), "[object Date]", 'x3.toString() must return "[object Date]"');
throw new Test262Error("#3: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x4 = new Date(1969, 11, 31, 23, 59); var x4 = new Date(1969, 11, 31, 23, 59);
if (x4.toString() !== "[object Date]") { assert.sameValue(x4.toString(), "[object Date]", 'x4.toString() must return "[object Date]"');
throw new Test262Error("#4: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x5 = new Date(1969, 12, 1, 0, 0); var x5 = new Date(1969, 12, 1, 0, 0);
if (x5.toString() !== "[object Date]") { assert.sameValue(x5.toString(), "[object Date]", 'x5.toString() must return "[object Date]"');
throw new Test262Error("#5: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x6 = new Date(1970, 0, 1, 0, 0); var x6 = new Date(1970, 0, 1, 0, 0);
if (x6.toString() !== "[object Date]") { assert.sameValue(x6.toString(), "[object Date]", 'x6.toString() must return "[object Date]"');
throw new Test262Error("#6: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x7 = new Date(1999, 11, 31, 23, 59); var x7 = new Date(1999, 11, 31, 23, 59);
if (x7.toString() !== "[object Date]") { assert.sameValue(x7.toString(), "[object Date]", 'x7.toString() must return "[object Date]"');
throw new Test262Error("#7: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x8 = new Date(1999, 12, 1, 0, 0); var x8 = new Date(1999, 12, 1, 0, 0);
if (x8.toString() !== "[object Date]") { assert.sameValue(x8.toString(), "[object Date]", 'x8.toString() must return "[object Date]"');
throw new Test262Error("#8: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x9 = new Date(2000, 0, 1, 0, 0); var x9 = new Date(2000, 0, 1, 0, 0);
if (x9.toString() !== "[object Date]") { assert.sameValue(x9.toString(), "[object Date]", 'x9.toString() must return "[object Date]"');
throw new Test262Error("#9: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x10 = new Date(2099, 11, 31, 23, 59); var x10 = new Date(2099, 11, 31, 23, 59);
if (x10.toString() !== "[object Date]") { assert.sameValue(x10.toString(), "[object Date]", 'x10.toString() must return "[object Date]"');
throw new Test262Error("#10: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x11 = new Date(2099, 12, 1, 0, 0); var x11 = new Date(2099, 12, 1, 0, 0);
if (x11.toString() !== "[object Date]") { assert.sameValue(x11.toString(), "[object Date]", 'x11.toString() must return "[object Date]"');
throw new Test262Error("#11: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x12 = new Date(2100, 0, 1, 0, 0); var x12 = new Date(2100, 0, 1, 0, 0);
if (x12.toString() !== "[object Date]") { assert.sameValue(x12.toString(), "[object Date]", 'x12.toString() must return "[object Date]"');
throw new Test262Error("#12: The [[Class]] property of the newly constructed object is set to 'Date'");
}

View File

@ -10,61 +10,97 @@ description: 6 arguments, (year, month, date, hours, minutes, seconds)
---*/ ---*/
var x1 = new Date(1899, 11, 31, 23, 59, 59); var x1 = new Date(1899, 11, 31, 23, 59, 59);
if (Object.prototype.toString.call(x1) !== "[object Date]") {
throw new Test262Error("#1: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x1),
"[object Date]",
'Object.prototype.toString.call(new Date(1899, 11, 31, 23, 59, 59)) must return "[object Date]"'
);
var x2 = new Date(1899, 12, 1, 0, 0, 0); var x2 = new Date(1899, 12, 1, 0, 0, 0);
if (Object.prototype.toString.call(x2) !== "[object Date]") {
throw new Test262Error("#2: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x2),
"[object Date]",
'Object.prototype.toString.call(new Date(1899, 12, 1, 0, 0, 0)) must return "[object Date]"'
);
var x3 = new Date(1900, 0, 1, 0, 0, 0); var x3 = new Date(1900, 0, 1, 0, 0, 0);
if (Object.prototype.toString.call(x3) !== "[object Date]") {
throw new Test262Error("#3: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x3),
"[object Date]",
'Object.prototype.toString.call(new Date(1900, 0, 1, 0, 0, 0)) must return "[object Date]"'
);
var x4 = new Date(1969, 11, 31, 23, 59, 59); var x4 = new Date(1969, 11, 31, 23, 59, 59);
if (Object.prototype.toString.call(x4) !== "[object Date]") {
throw new Test262Error("#4: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x4),
"[object Date]",
'Object.prototype.toString.call(new Date(1969, 11, 31, 23, 59, 59)) must return "[object Date]"'
);
var x5 = new Date(1969, 12, 1, 0, 0, 0); var x5 = new Date(1969, 12, 1, 0, 0, 0);
if (Object.prototype.toString.call(x5) !== "[object Date]") {
throw new Test262Error("#5: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x5),
"[object Date]",
'Object.prototype.toString.call(new Date(1969, 12, 1, 0, 0, 0)) must return "[object Date]"'
);
var x6 = new Date(1970, 0, 1, 0, 0, 0); var x6 = new Date(1970, 0, 1, 0, 0, 0);
if (Object.prototype.toString.call(x6) !== "[object Date]") {
throw new Test262Error("#6: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x6),
"[object Date]",
'Object.prototype.toString.call(new Date(1970, 0, 1, 0, 0, 0)) must return "[object Date]"'
);
var x7 = new Date(1999, 11, 31, 23, 59, 59); var x7 = new Date(1999, 11, 31, 23, 59, 59);
if (Object.prototype.toString.call(x7) !== "[object Date]") {
throw new Test262Error("#7: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x7),
"[object Date]",
'Object.prototype.toString.call(new Date(1999, 11, 31, 23, 59, 59)) must return "[object Date]"'
);
var x8 = new Date(1999, 12, 1, 0, 0, 0); var x8 = new Date(1999, 12, 1, 0, 0, 0);
if (Object.prototype.toString.call(x8) !== "[object Date]") {
throw new Test262Error("#8: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x8),
"[object Date]",
'Object.prototype.toString.call(new Date(1999, 12, 1, 0, 0, 0)) must return "[object Date]"'
);
var x9 = new Date(2000, 0, 1, 0, 0, 0); var x9 = new Date(2000, 0, 1, 0, 0, 0);
if (Object.prototype.toString.call(x9) !== "[object Date]") {
throw new Test262Error("#9: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x9),
"[object Date]",
'Object.prototype.toString.call(new Date(2000, 0, 1, 0, 0, 0)) must return "[object Date]"'
);
var x10 = new Date(2099, 11, 31, 23, 59, 59); var x10 = new Date(2099, 11, 31, 23, 59, 59);
if (Object.prototype.toString.call(x10) !== "[object Date]") {
throw new Test262Error("#10: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x10),
"[object Date]",
'Object.prototype.toString.call(new Date(2099, 11, 31, 23, 59, 59)) must return "[object Date]"'
);
var x11 = new Date(2099, 12, 1, 0, 0, 0); var x11 = new Date(2099, 12, 1, 0, 0, 0);
if (Object.prototype.toString.call(x11) !== "[object Date]") {
throw new Test262Error("#11: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x11),
"[object Date]",
'Object.prototype.toString.call(new Date(2099, 12, 1, 0, 0, 0)) must return "[object Date]"'
);
var x12 = new Date(2100, 0, 1, 0, 0, 0); var x12 = new Date(2100, 0, 1, 0, 0, 0);
if (Object.prototype.toString.call(x12) !== "[object Date]") {
throw new Test262Error("#12: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x12),
"[object Date]",
'Object.prototype.toString.call(new Date(2100, 0, 1, 0, 0, 0)) must return "[object Date]"'
);

View File

@ -14,61 +14,37 @@ description: >
Date.prototype.toString = Object.prototype.toString; Date.prototype.toString = Object.prototype.toString;
var x1 = new Date(1899, 11, 31, 23, 59, 59); var x1 = new Date(1899, 11, 31, 23, 59, 59);
if (x1.toString() !== "[object Date]") { assert.sameValue(x1.toString(), "[object Date]", 'x1.toString() must return "[object Date]"');
throw new Test262Error("#1: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x2 = new Date(1899, 12, 1, 0, 0, 0); var x2 = new Date(1899, 12, 1, 0, 0, 0);
if (x2.toString() !== "[object Date]") { assert.sameValue(x2.toString(), "[object Date]", 'x2.toString() must return "[object Date]"');
throw new Test262Error("#2: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x3 = new Date(1900, 0, 1, 0, 0, 0); var x3 = new Date(1900, 0, 1, 0, 0, 0);
if (x3.toString() !== "[object Date]") { assert.sameValue(x3.toString(), "[object Date]", 'x3.toString() must return "[object Date]"');
throw new Test262Error("#3: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x4 = new Date(1969, 11, 31, 23, 59, 59); var x4 = new Date(1969, 11, 31, 23, 59, 59);
if (x4.toString() !== "[object Date]") { assert.sameValue(x4.toString(), "[object Date]", 'x4.toString() must return "[object Date]"');
throw new Test262Error("#4: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x5 = new Date(1969, 12, 1, 0, 0, 0); var x5 = new Date(1969, 12, 1, 0, 0, 0);
if (x5.toString() !== "[object Date]") { assert.sameValue(x5.toString(), "[object Date]", 'x5.toString() must return "[object Date]"');
throw new Test262Error("#5: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x6 = new Date(1970, 0, 1, 0, 0, 0); var x6 = new Date(1970, 0, 1, 0, 0, 0);
if (x6.toString() !== "[object Date]") { assert.sameValue(x6.toString(), "[object Date]", 'x6.toString() must return "[object Date]"');
throw new Test262Error("#6: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x7 = new Date(1999, 11, 31, 23, 59, 59); var x7 = new Date(1999, 11, 31, 23, 59, 59);
if (x7.toString() !== "[object Date]") { assert.sameValue(x7.toString(), "[object Date]", 'x7.toString() must return "[object Date]"');
throw new Test262Error("#7: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x8 = new Date(1999, 12, 1, 0, 0, 0); var x8 = new Date(1999, 12, 1, 0, 0, 0);
if (x8.toString() !== "[object Date]") { assert.sameValue(x8.toString(), "[object Date]", 'x8.toString() must return "[object Date]"');
throw new Test262Error("#8: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x9 = new Date(2000, 0, 1, 0, 0, 0); var x9 = new Date(2000, 0, 1, 0, 0, 0);
if (x9.toString() !== "[object Date]") { assert.sameValue(x9.toString(), "[object Date]", 'x9.toString() must return "[object Date]"');
throw new Test262Error("#9: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x10 = new Date(2099, 11, 31, 23, 59, 59); var x10 = new Date(2099, 11, 31, 23, 59, 59);
if (x10.toString() !== "[object Date]") { assert.sameValue(x10.toString(), "[object Date]", 'x10.toString() must return "[object Date]"');
throw new Test262Error("#10: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x11 = new Date(2099, 12, 1, 0, 0, 0); var x11 = new Date(2099, 12, 1, 0, 0, 0);
if (x11.toString() !== "[object Date]") { assert.sameValue(x11.toString(), "[object Date]", 'x11.toString() must return "[object Date]"');
throw new Test262Error("#11: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x12 = new Date(2100, 0, 1, 0, 0, 0); var x12 = new Date(2100, 0, 1, 0, 0, 0);
if (x12.toString() !== "[object Date]") { assert.sameValue(x12.toString(), "[object Date]", 'x12.toString() must return "[object Date]"');
throw new Test262Error("#12: The [[Class]] property of the newly constructed object is set to 'Date'");
}

View File

@ -10,61 +10,97 @@ description: 7 arguments, (year, month, date, hours, minutes, seconds, ms)
---*/ ---*/
var x1 = new Date(1899, 11, 31, 23, 59, 59, 999); var x1 = new Date(1899, 11, 31, 23, 59, 59, 999);
if (Object.prototype.toString.call(x1) !== "[object Date]") {
throw new Test262Error("#1: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x1),
"[object Date]",
'Object.prototype.toString.call(new Date(1899, 11, 31, 23, 59, 59, 999)) must return "[object Date]"'
);
var x2 = new Date(1899, 12, 1, 0, 0, 0, 0); var x2 = new Date(1899, 12, 1, 0, 0, 0, 0);
if (Object.prototype.toString.call(x2) !== "[object Date]") {
throw new Test262Error("#2: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x2),
"[object Date]",
'Object.prototype.toString.call(new Date(1899, 12, 1, 0, 0, 0, 0)) must return "[object Date]"'
);
var x3 = new Date(1900, 0, 1, 0, 0, 0, 0); var x3 = new Date(1900, 0, 1, 0, 0, 0, 0);
if (Object.prototype.toString.call(x3) !== "[object Date]") {
throw new Test262Error("#3: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x3),
"[object Date]",
'Object.prototype.toString.call(new Date(1900, 0, 1, 0, 0, 0, 0)) must return "[object Date]"'
);
var x4 = new Date(1969, 11, 31, 23, 59, 59, 999); var x4 = new Date(1969, 11, 31, 23, 59, 59, 999);
if (Object.prototype.toString.call(x4) !== "[object Date]") {
throw new Test262Error("#4: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x4),
"[object Date]",
'Object.prototype.toString.call(new Date(1969, 11, 31, 23, 59, 59, 999)) must return "[object Date]"'
);
var x5 = new Date(1969, 12, 1, 0, 0, 0, 0); var x5 = new Date(1969, 12, 1, 0, 0, 0, 0);
if (Object.prototype.toString.call(x5) !== "[object Date]") {
throw new Test262Error("#5: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x5),
"[object Date]",
'Object.prototype.toString.call(new Date(1969, 12, 1, 0, 0, 0, 0)) must return "[object Date]"'
);
var x6 = new Date(1970, 0, 1, 0, 0, 0, 0); var x6 = new Date(1970, 0, 1, 0, 0, 0, 0);
if (Object.prototype.toString.call(x6) !== "[object Date]") {
throw new Test262Error("#6: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x6),
"[object Date]",
'Object.prototype.toString.call(new Date(1970, 0, 1, 0, 0, 0, 0)) must return "[object Date]"'
);
var x7 = new Date(1999, 11, 31, 23, 59, 59, 999); var x7 = new Date(1999, 11, 31, 23, 59, 59, 999);
if (Object.prototype.toString.call(x7) !== "[object Date]") {
throw new Test262Error("#7: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x7),
"[object Date]",
'Object.prototype.toString.call(new Date(1999, 11, 31, 23, 59, 59, 999)) must return "[object Date]"'
);
var x8 = new Date(1999, 12, 1, 0, 0, 0, 0); var x8 = new Date(1999, 12, 1, 0, 0, 0, 0);
if (Object.prototype.toString.call(x8) !== "[object Date]") {
throw new Test262Error("#8: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x8),
"[object Date]",
'Object.prototype.toString.call(new Date(1999, 12, 1, 0, 0, 0, 0)) must return "[object Date]"'
);
var x9 = new Date(2000, 0, 1, 0, 0, 0, 0); var x9 = new Date(2000, 0, 1, 0, 0, 0, 0);
if (Object.prototype.toString.call(x9) !== "[object Date]") {
throw new Test262Error("#9: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x9),
"[object Date]",
'Object.prototype.toString.call(new Date(2000, 0, 1, 0, 0, 0, 0)) must return "[object Date]"'
);
var x10 = new Date(2099, 11, 31, 23, 59, 59, 999); var x10 = new Date(2099, 11, 31, 23, 59, 59, 999);
if (Object.prototype.toString.call(x10) !== "[object Date]") {
throw new Test262Error("#10: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x10),
"[object Date]",
'Object.prototype.toString.call(new Date(2099, 11, 31, 23, 59, 59, 999)) must return "[object Date]"'
);
var x11 = new Date(2099, 12, 1, 0, 0, 0, 0); var x11 = new Date(2099, 12, 1, 0, 0, 0, 0);
if (Object.prototype.toString.call(x11) !== "[object Date]") {
throw new Test262Error("#11: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x11),
"[object Date]",
'Object.prototype.toString.call(new Date(2099, 12, 1, 0, 0, 0, 0)) must return "[object Date]"'
);
var x12 = new Date(2100, 0, 1, 0, 0, 0, 0); var x12 = new Date(2100, 0, 1, 0, 0, 0, 0);
if (Object.prototype.toString.call(x12) !== "[object Date]") {
throw new Test262Error("#12: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x12),
"[object Date]",
'Object.prototype.toString.call(new Date(2100, 0, 1, 0, 0, 0, 0)) must return "[object Date]"'
);

View File

@ -14,61 +14,37 @@ description: >
Date.prototype.toString = Object.prototype.toString; Date.prototype.toString = Object.prototype.toString;
var x1 = new Date(1899, 11, 31, 23, 59, 59, 999); var x1 = new Date(1899, 11, 31, 23, 59, 59, 999);
if (x1.toString() !== "[object Date]") { assert.sameValue(x1.toString(), "[object Date]", 'x1.toString() must return "[object Date]"');
throw new Test262Error("#1: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x2 = new Date(1899, 12, 1, 0, 0, 0, 0); var x2 = new Date(1899, 12, 1, 0, 0, 0, 0);
if (x2.toString() !== "[object Date]") { assert.sameValue(x2.toString(), "[object Date]", 'x2.toString() must return "[object Date]"');
throw new Test262Error("#2: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x3 = new Date(1900, 0, 1, 0, 0, 0, 0); var x3 = new Date(1900, 0, 1, 0, 0, 0, 0);
if (x3.toString() !== "[object Date]") { assert.sameValue(x3.toString(), "[object Date]", 'x3.toString() must return "[object Date]"');
throw new Test262Error("#3: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x4 = new Date(1969, 11, 31, 23, 59, 59, 999); var x4 = new Date(1969, 11, 31, 23, 59, 59, 999);
if (x4.toString() !== "[object Date]") { assert.sameValue(x4.toString(), "[object Date]", 'x4.toString() must return "[object Date]"');
throw new Test262Error("#4: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x5 = new Date(1969, 12, 1, 0, 0, 0, 0); var x5 = new Date(1969, 12, 1, 0, 0, 0, 0);
if (x5.toString() !== "[object Date]") { assert.sameValue(x5.toString(), "[object Date]", 'x5.toString() must return "[object Date]"');
throw new Test262Error("#5: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x6 = new Date(1970, 0, 1, 0, 0, 0, 0); var x6 = new Date(1970, 0, 1, 0, 0, 0, 0);
if (x6.toString() !== "[object Date]") { assert.sameValue(x6.toString(), "[object Date]", 'x6.toString() must return "[object Date]"');
throw new Test262Error("#6: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x7 = new Date(1999, 11, 31, 23, 59, 59, 999); var x7 = new Date(1999, 11, 31, 23, 59, 59, 999);
if (x7.toString() !== "[object Date]") { assert.sameValue(x7.toString(), "[object Date]", 'x7.toString() must return "[object Date]"');
throw new Test262Error("#7: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x8 = new Date(1999, 12, 1, 0, 0, 0, 0); var x8 = new Date(1999, 12, 1, 0, 0, 0, 0);
if (x8.toString() !== "[object Date]") { assert.sameValue(x8.toString(), "[object Date]", 'x8.toString() must return "[object Date]"');
throw new Test262Error("#8: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x9 = new Date(2000, 0, 1, 0, 0, 0, 0); var x9 = new Date(2000, 0, 1, 0, 0, 0, 0);
if (x9.toString() !== "[object Date]") { assert.sameValue(x9.toString(), "[object Date]", 'x9.toString() must return "[object Date]"');
throw new Test262Error("#9: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x10 = new Date(2099, 11, 31, 23, 59, 59, 999); var x10 = new Date(2099, 11, 31, 23, 59, 59, 999);
if (x10.toString() !== "[object Date]") { assert.sameValue(x10.toString(), "[object Date]", 'x10.toString() must return "[object Date]"');
throw new Test262Error("#10: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x11 = new Date(2099, 12, 1, 0, 0, 0, 0); var x11 = new Date(2099, 12, 1, 0, 0, 0, 0);
if (x11.toString() !== "[object Date]") { assert.sameValue(x11.toString(), "[object Date]", 'x11.toString() must return "[object Date]"');
throw new Test262Error("#11: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x12 = new Date(2100, 0, 1, 0, 0, 0, 0); var x12 = new Date(2100, 0, 1, 0, 0, 0, 0);
if (x12.toString() !== "[object Date]") { assert.sameValue(x12.toString(), "[object Date]", 'x12.toString() must return "[object Date]"');
throw new Test262Error("#12: The [[Class]] property of the newly constructed object is set to 'Date'");
}

View File

@ -0,0 +1,29 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: |
The [[Value]] property of the newly constructed object
is set by following steps:
1. Call ToNumber(year)
2. Call ToNumber(month)
3. If date is supplied use ToNumber(date)
4. If hours is supplied use ToNumber(hours)
5. If minutes is supplied use ToNumber(minutes)
6. If seconds is supplied use ToNumber(seconds)
7. If ms is supplied use ToNumber(ms)
esid: sec-date-year-month-date-hours-minutes-seconds-ms
description: 1 argument (year)
---*/
function PoisonedValueOf(val) {
this.value = val;
this.valueOf = function() {
throw new Test262Error();
};
this.toString = function() {};
}
assert.throws(Test262Error, () => {
new Date(new PoisonedValueOf(1));
}, '`new Date(new PoisonedValueOf(1))` throws a Test262Error exception');

View File

@ -16,34 +16,18 @@ esid: sec-date-year-month-date-hours-minutes-seconds-ms
description: 2 arguments, (year, month) description: 2 arguments, (year, month)
---*/ ---*/
var myObj = function(val) { function PoisonedValueOf(val) {
this.value = val; this.value = val;
this.valueOf = function() { this.valueOf = function() {
throw "valueOf-" + this.value; throw new Test262Error();
}; };
this.toString = function() { this.toString = function() {};
throw "toString-" + this.value;
};
};
//CHECK#1
try {
var x1 = new Date(new myObj(1), new myObj(2));
throw new Test262Error("#1: The 1st step is calling ToNumber(year)");
}
catch (e) {
if (e !== "valueOf-1") {
throw new Test262Error("#1: The 1st step is calling ToNumber(year)");
}
} }
//CHECK#2 assert.throws(Test262Error, () => {
try { new Date(new PoisonedValueOf(1), new PoisonedValueOf(2));
var x2 = new Date(1, new myObj(2)); }, '`new Date(new PoisonedValueOf(1), new PoisonedValueOf(2))` throws a Test262Error exception');
throw new Test262Error("#2: The 2nd step is calling ToNumber(month)");
} assert.throws(Test262Error, () => {
catch (e) { new Date(1, new PoisonedValueOf(2));
if (e !== "valueOf-2") { }, '`new Date(1, new PoisonedValueOf(2))` throws a Test262Error exception');
throw new Test262Error("#2: The 2nd step is calling ToNumber(month)");
}
}

View File

@ -16,45 +16,22 @@ esid: sec-date-year-month-date-hours-minutes-seconds-ms
description: 3 arguments, (year, month, date) description: 3 arguments, (year, month, date)
---*/ ---*/
var myObj = function(val) { function PoisonedValueOf(val) {
this.value = val; this.value = val;
this.valueOf = function() { this.valueOf = function() {
throw "valueOf-" + this.value; throw new Test262Error();
}; };
this.toString = function() { this.toString = function() {};
throw "toString-" + this.value;
};
};
//CHECK#1
try {
var x1 = new Date(new myObj(1), new myObj(2), new myObj(3));
throw new Test262Error("#1: The 1st step is calling ToNumber(year)");
}
catch (e) {
if (e !== "valueOf-1") {
throw new Test262Error("#1: The 1st step is calling ToNumber(year)");
}
} }
//CHECK#2 assert.throws(Test262Error, () => {
try { new Date(new PoisonedValueOf(1), new PoisonedValueOf(2), new PoisonedValueOf(3));
var x2 = new Date(1, new myObj(2), new myObj(3)); }, '`new Date(new PoisonedValueOf(1), new PoisonedValueOf(2), new PoisonedValueOf(3))` throws a Test262Error exception');
throw new Test262Error("#2: The 2nd step is calling ToNumber(month)");
}
catch (e) {
if (e !== "valueOf-2") {
throw new Test262Error("#2: The 2nd step is calling ToNumber(month)");
}
}
//CHECK#3 assert.throws(Test262Error, () => {
try { new Date(1, new PoisonedValueOf(2), new PoisonedValueOf(3));
var x3 = new Date(1, 2, new myObj(3)); }, '`new Date(1, new PoisonedValueOf(2), new PoisonedValueOf(3))` throws a Test262Error exception');
throw new Test262Error("#3: The 3rd step is calling ToNumber(date)");
} assert.throws(Test262Error, () => {
catch (e) { new Date(1, 2, new PoisonedValueOf(3));
if (e !== "valueOf-3") { }, '`new Date(1, 2, new PoisonedValueOf(3))` throws a Test262Error exception');
throw new Test262Error("#3: The 3rd step is calling ToNumber(date)");
}
}

View File

@ -16,56 +16,26 @@ esid: sec-date-year-month-date-hours-minutes-seconds-ms
description: 4 arguments, (year, month, date, hours) description: 4 arguments, (year, month, date, hours)
---*/ ---*/
var myObj = function(val) { function PoisonedValueOf(val) {
this.value = val; this.value = val;
this.valueOf = function() { this.valueOf = function() {
throw "valueOf-" + this.value; throw new Test262Error();
}; };
this.toString = function() { this.toString = function() {};
throw "toString-" + this.value;
};
};
//CHECK#1
try {
var x1 = new Date(new myObj(1), new myObj(2), new myObj(3), new myObj(4));
throw new Test262Error("#1: The 1st step is calling ToNumber(year)");
}
catch (e) {
if (e !== "valueOf-1") {
throw new Test262Error("#1: The 1st step is calling ToNumber(year)");
}
} }
//CHECK#2 assert.throws(Test262Error, () => {
try { new Date(new PoisonedValueOf(1), new PoisonedValueOf(2), new PoisonedValueOf(3), new PoisonedValueOf(4));
var x2 = new Date(1, new myObj(2), new myObj(3), new myObj(4)); }, '`new Date(new PoisonedValueOf(1), new PoisonedValueOf(2), new PoisonedValueOf(3), new PoisonedValueOf(4))` throws a Test262Error exception');
throw new Test262Error("#2: The 2nd step is calling ToNumber(month)");
}
catch (e) {
if (e !== "valueOf-2") {
throw new Test262Error("#2: The 2nd step is calling ToNumber(month)");
}
}
//CHECK#3 assert.throws(Test262Error, () => {
try { new Date(1, new PoisonedValueOf(2), new PoisonedValueOf(3), new PoisonedValueOf(4));
var x3 = new Date(1, 2, new myObj(3), new myObj(4)); }, '`new Date(1, new PoisonedValueOf(2), new PoisonedValueOf(3), new PoisonedValueOf(4))` throws a Test262Error exception');
throw new Test262Error("#3: The 3rd step is calling ToNumber(date)");
}
catch (e) {
if (e !== "valueOf-3") {
throw new Test262Error("#3: The 3rd step is calling ToNumber(date)");
}
}
//CHECK#4 assert.throws(Test262Error, () => {
try { new Date(1, 2, new PoisonedValueOf(3), new PoisonedValueOf(4));
var x4 = new Date(1, 2, 3, new myObj(4)); }, '`new Date(1, 2, new PoisonedValueOf(3), new PoisonedValueOf(4))` throws a Test262Error exception');
throw new Test262Error("#4: The 4th step is calling ToNumber(hours)");
} assert.throws(Test262Error, () => {
catch (e) { new Date(1, 2, 3, new PoisonedValueOf(4));
if (e !== "valueOf-4") { }, '`new Date(1, 2, 3, new PoisonedValueOf(4))` throws a Test262Error exception');
throw new Test262Error("#4: The 4th step is calling ToNumber(hours)");
}
}

View File

@ -16,67 +16,30 @@ esid: sec-date-year-month-date-hours-minutes-seconds-ms
description: 5 arguments, (year, month, date, hours, minutes) description: 5 arguments, (year, month, date, hours, minutes)
---*/ ---*/
var myObj = function(val) { function PoisonedValueOf(val) {
this.value = val; this.value = val;
this.valueOf = function() { this.valueOf = function() {
throw "valueOf-" + this.value; throw new Test262Error();
}; };
this.toString = function() { this.toString = function() {};
throw "toString-" + this.value;
};
};
//CHECK#1
try {
var x1 = new Date(new myObj(1), new myObj(2), new myObj(3), new myObj(4), new myObj(5));
throw new Test262Error("#1: The 1st step is calling ToNumber(year)");
}
catch (e) {
if (e !== "valueOf-1") {
throw new Test262Error("#1: The 1st step is calling ToNumber(year)");
}
} }
//CHECK#2 assert.throws(Test262Error, () => {
try { new Date(new PoisonedValueOf(1), new PoisonedValueOf(2), new PoisonedValueOf(3), new PoisonedValueOf(4), new PoisonedValueOf(5));
var x2 = new Date(1, new myObj(2), new myObj(3), new myObj(4), new myObj(5)); }, '`new Date(new PoisonedValueOf(1), new PoisonedValueOf(2), new PoisonedValueOf(3), new PoisonedValueOf(4), new PoisonedValueOf(5))` throws a Test262Error exception');
throw new Test262Error("#2: The 2nd step is calling ToNumber(month)");
}
catch (e) {
if (e !== "valueOf-2") {
throw new Test262Error("#2: The 2nd step is calling ToNumber(month)");
}
}
//CHECK#3 assert.throws(Test262Error, () => {
try { new Date(1, new PoisonedValueOf(2), new PoisonedValueOf(3), new PoisonedValueOf(4), new PoisonedValueOf(5));
var x3 = new Date(1, 2, new myObj(3), new myObj(4), new myObj(5)); }, '`new Date(1, new PoisonedValueOf(2), new PoisonedValueOf(3), new PoisonedValueOf(4), new PoisonedValueOf(5))` throws a Test262Error exception');
throw new Test262Error("#3: The 3rd step is calling ToNumber(date)");
}
catch (e) {
if (e !== "valueOf-3") {
throw new Test262Error("#3: The 3rd step is calling ToNumber(date)");
}
}
//CHECK#4 assert.throws(Test262Error, () => {
try { new Date(1, 2, new PoisonedValueOf(3), new PoisonedValueOf(4), new PoisonedValueOf(5));
var x4 = new Date(1, 2, 3, new myObj(4), new myObj(5)); }, '`new Date(1, 2, new PoisonedValueOf(3), new PoisonedValueOf(4), new PoisonedValueOf(5))` throws a Test262Error exception');
throw new Test262Error("#4: The 4th step is calling ToNumber(hours)");
}
catch (e) {
if (e !== "valueOf-4") {
throw new Test262Error("#4: The 4th step is calling ToNumber(hours)");
}
}
//CHECK#5 assert.throws(Test262Error, () => {
try { new Date(1, 2, 3, new PoisonedValueOf(4), new PoisonedValueOf(5));
var x5 = new Date(1, 2, 3, 4, new myObj(5)); }, '`new Date(1, 2, 3, new PoisonedValueOf(4), new PoisonedValueOf(5))` throws a Test262Error exception');
throw new Test262Error("#5: The 5th step is calling ToNumber(minutes)");
} assert.throws(Test262Error, () => {
catch (e) { new Date(1, 2, 3, 4, new PoisonedValueOf(5));
if (e !== "valueOf-5") { }, '`new Date(1, 2, 3, 4, new PoisonedValueOf(5))` throws a Test262Error exception');
throw new Test262Error("#5: The 5th step is calling ToNumber(minutes)");
}
}

View File

@ -16,78 +16,34 @@ esid: sec-date-year-month-date-hours-minutes-seconds-ms
description: 6 arguments, (year, month, date, hours, minutes, seconds) description: 6 arguments, (year, month, date, hours, minutes, seconds)
---*/ ---*/
var myObj = function(val) { function PoisonedValueOf(val) {
this.value = val; this.value = val;
this.valueOf = function() { this.valueOf = function() {
throw "valueOf-" + this.value; throw new Test262Error();
}; };
this.toString = function() { this.toString = function() {};
throw "toString-" + this.value;
};
};
//CHECK#1
try {
var x1 = new Date(new myObj(1), new myObj(2), new myObj(3), new myObj(4), new myObj(5), new myObj(6));
throw new Test262Error("#1: The 1st step is calling ToNumber(year)");
}
catch (e) {
if (e !== "valueOf-1") {
throw new Test262Error("#1: The 1st step is calling ToNumber(year)");
}
} }
//CHECK#2 assert.throws(Test262Error, () => {
try { new Date(new PoisonedValueOf(1), new PoisonedValueOf(2), new PoisonedValueOf(3), new PoisonedValueOf(4), new PoisonedValueOf(5), new PoisonedValueOf(6));
var x2 = new Date(1, new myObj(2), new myObj(3), new myObj(4), new myObj(5), new myObj(6)); }, '`new Date(new PoisonedValueOf(1), new PoisonedValueOf(2), new PoisonedValueOf(3), new PoisonedValueOf(4), new PoisonedValueOf(5), new PoisonedValueOf(6))` throws a Test262Error exception');
throw new Test262Error("#2: The 2nd step is calling ToNumber(month)");
}
catch (e) {
if (e !== "valueOf-2") {
throw new Test262Error("#2: The 2nd step is calling ToNumber(month)");
}
}
//CHECK#3 assert.throws(Test262Error, () => {
try { new Date(1, new PoisonedValueOf(2), new PoisonedValueOf(3), new PoisonedValueOf(4), new PoisonedValueOf(5), new PoisonedValueOf(6));
var x3 = new Date(1, 2, new myObj(3), new myObj(4), new myObj(5), new myObj(6)); }, '`new Date(1, new PoisonedValueOf(2), new PoisonedValueOf(3), new PoisonedValueOf(4), new PoisonedValueOf(5), new PoisonedValueOf(6))` throws a Test262Error exception');
throw new Test262Error("#3: The 3rd step is calling ToNumber(date)");
}
catch (e) {
if (e !== "valueOf-3") {
throw new Test262Error("#3: The 3rd step is calling ToNumber(date)");
}
}
//CHECK#4 assert.throws(Test262Error, () => {
try { new Date(1, 2, new PoisonedValueOf(3), new PoisonedValueOf(4), new PoisonedValueOf(5), new PoisonedValueOf(6));
var x4 = new Date(1, 2, 3, new myObj(4), new myObj(5), new myObj(6)); }, '`new Date(1, 2, new PoisonedValueOf(3), new PoisonedValueOf(4), new PoisonedValueOf(5), new PoisonedValueOf(6))` throws a Test262Error exception');
throw new Test262Error("#4: The 4th step is calling ToNumber(hours)");
}
catch (e) {
if (e !== "valueOf-4") {
throw new Test262Error("#4: The 4th step is calling ToNumber(hours)");
}
}
//CHECK#5 assert.throws(Test262Error, () => {
try { new Date(1, 2, 3, new PoisonedValueOf(4), new PoisonedValueOf(5), new PoisonedValueOf(6));
var x5 = new Date(1, 2, 3, 4, new myObj(5), new myObj(6)); }, '`new Date(1, 2, 3, new PoisonedValueOf(4), new PoisonedValueOf(5), new PoisonedValueOf(6))` throws a Test262Error exception');
throw new Test262Error("#5: The 5th step is calling ToNumber(minutes)");
}
catch (e) {
if (e !== "valueOf-5") {
throw new Test262Error("#5: The 5th step is calling ToNumber(minutes)");
}
}
//CHECK#6 assert.throws(Test262Error, () => {
try { new Date(1, 2, 3, 4, new PoisonedValueOf(5), new PoisonedValueOf(6));
var x6 = new Date(1, 2, 3, 4, 5, new myObj(6)); }, '`new Date(1, 2, 3, 4, new PoisonedValueOf(5), new PoisonedValueOf(6))` throws a Test262Error exception');
throw new Test262Error("#6: The 6th step is calling ToNumber(seconds)");
} assert.throws(Test262Error, () => {
catch (e) { new Date(1, 2, 3, 4, 5, new PoisonedValueOf(6));
if (e !== "valueOf-6") { }, '`new Date(1, 2, 3, 4, 5, new PoisonedValueOf(6))` throws a Test262Error exception');
throw new Test262Error("#6: The 6th step is calling ToNumber(seconds)");
}
}

View File

@ -16,89 +16,38 @@ esid: sec-date-year-month-date-hours-minutes-seconds-ms
description: 7 arguments, (year, month, date, hours, minutes, seconds, ms) description: 7 arguments, (year, month, date, hours, minutes, seconds, ms)
---*/ ---*/
var myObj = function(val) { function PoisonedValueOf(val) {
this.value = val; this.value = val;
this.valueOf = function() { this.valueOf = function() {
throw "valueOf-" + this.value; throw new Test262Error();
}; };
this.toString = function() { this.toString = function() {};
throw "toString-" + this.value;
};
};
//CHECK#1
try {
var x1 = new Date(new myObj(1), new myObj(2), new myObj(3), new myObj(4), new myObj(5), new myObj(6), new myObj(7));
throw new Test262Error("#1: The 1st step is calling ToNumber(year)");
}
catch (e) {
if (e !== "valueOf-1") {
throw new Test262Error("#1: The 1st step is calling ToNumber(year)");
}
} }
//CHECK#2 assert.throws(Test262Error, () => {
try { new Date(new PoisonedValueOf(1), new PoisonedValueOf(2), new PoisonedValueOf(3), new PoisonedValueOf(4), new PoisonedValueOf(5), new PoisonedValueOf(6), new PoisonedValueOf(7));
var x2 = new Date(1, new myObj(2), new myObj(3), new myObj(4), new myObj(5), new myObj(6), new myObj(7)); }, '`new Date(new PoisonedValueOf(1), new PoisonedValueOf(2), new PoisonedValueOf(3), new PoisonedValueOf(4), new PoisonedValueOf(5), new PoisonedValueOf(6), new PoisonedValueOf(7))` throws a Test262Error exception');
throw new Test262Error("#2: The 2nd step is calling ToNumber(month)");
}
catch (e) {
if (e !== "valueOf-2") {
throw new Test262Error("#2: The 2nd step is calling ToNumber(month)");
}
}
//CHECK#3 assert.throws(Test262Error, () => {
try { new Date(1, new PoisonedValueOf(2), new PoisonedValueOf(3), new PoisonedValueOf(4), new PoisonedValueOf(5), new PoisonedValueOf(6), new PoisonedValueOf(7));
var x3 = new Date(1, 2, new myObj(3), new myObj(4), new myObj(5), new myObj(6), new myObj(7)); }, '`new Date(1, new PoisonedValueOf(2), new PoisonedValueOf(3), new PoisonedValueOf(4), new PoisonedValueOf(5), new PoisonedValueOf(6), new PoisonedValueOf(7))` throws a Test262Error exception');
throw new Test262Error("#3: The 3rd step is calling ToNumber(date)");
}
catch (e) {
if (e !== "valueOf-3") {
throw new Test262Error("#3: The 3rd step is calling ToNumber(date)");
}
}
//CHECK#4 assert.throws(Test262Error, () => {
try { new Date(1, 2, new PoisonedValueOf(3), new PoisonedValueOf(4), new PoisonedValueOf(5), new PoisonedValueOf(6), new PoisonedValueOf(7));
var x4 = new Date(1, 2, 3, new myObj(4), new myObj(5), new myObj(6), new myObj(7)); }, '`new Date(1, 2, new PoisonedValueOf(3), new PoisonedValueOf(4), new PoisonedValueOf(5), new PoisonedValueOf(6), new PoisonedValueOf(7))` throws a Test262Error exception');
throw new Test262Error("#4: The 4th step is calling ToNumber(hours)");
}
catch (e) {
if (e !== "valueOf-4") {
throw new Test262Error("#4: The 4th step is calling ToNumber(hours)");
}
}
//CHECK#5 assert.throws(Test262Error, () => {
try { new Date(1, 2, 3, new PoisonedValueOf(4), new PoisonedValueOf(5), new PoisonedValueOf(6), new PoisonedValueOf(7));
var x5 = new Date(1, 2, 3, 4, new myObj(5), new myObj(6), new myObj(7)); }, '`new Date(1, 2, 3, new PoisonedValueOf(4), new PoisonedValueOf(5), new PoisonedValueOf(6), new PoisonedValueOf(7))` throws a Test262Error exception');
throw new Test262Error("#5: The 5th step is calling ToNumber(minutes)");
}
catch (e) {
if (e !== "valueOf-5") {
throw new Test262Error("#5: The 5th step is calling ToNumber(minutes)");
}
}
//CHECK#6 assert.throws(Test262Error, () => {
try { new Date(1, 2, 3, 4, new PoisonedValueOf(5), new PoisonedValueOf(6), new PoisonedValueOf(7));
var x6 = new Date(1, 2, 3, 4, 5, new myObj(6), new myObj(7)); }, '`new Date(1, 2, 3, 4, new PoisonedValueOf(5), new PoisonedValueOf(6), new PoisonedValueOf(7))` throws a Test262Error exception');
throw new Test262Error("#6: The 6th step is calling ToNumber(seconds)");
}
catch (e) {
if (e !== "valueOf-6") {
throw new Test262Error("#6: The 6th step is calling ToNumber(seconds)");
}
}
//CHECK#7 assert.throws(Test262Error, () => {
try { new Date(1, 2, 3, 4, 5, new PoisonedValueOf(6), new PoisonedValueOf(7));
var x7 = new Date(1, 2, 3, 4, 5, 6, new myObj(7)); }, '`new Date(1, 2, 3, 4, 5, new PoisonedValueOf(6), new PoisonedValueOf(7))` throws a Test262Error exception');
throw new Test262Error("#7: The 7th step is calling ToNumber(ms)");
} assert.throws(Test262Error, () => {
catch (e) { new Date(1, 2, 3, 4, 5, 6, new PoisonedValueOf(7));
if (e !== "valueOf-7") { }, '`new Date(1, 2, 3, 4, 5, 6, new PoisonedValueOf(7))` throws a Test262Error exception');
throw new Test262Error("#7: The 7th step is calling ToNumber(ms)");
}
}

View File

@ -15,37 +15,37 @@ function DateValue(year, month, date, hours, minutes, seconds, ms) {
var x; var x;
x = DateValue(1899, 11); x = DateValue(1899, 11);
assert.sameValue(x, NaN, "(1899, 11)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(1899, 12); x = DateValue(1899, 12);
assert.sameValue(x, NaN, "(1899, 12)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(1900, 0); x = DateValue(1900, 0);
assert.sameValue(x, NaN, "(1900, 0)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(1969, 11); x = DateValue(1969, 11);
assert.sameValue(x, NaN, "(1969, 11)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(1969, 12); x = DateValue(1969, 12);
assert.sameValue(x, NaN, "(1969, 12)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(1970, 0); x = DateValue(1970, 0);
assert.sameValue(x, NaN, "(1970, 0)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(1999, 11); x = DateValue(1999, 11);
assert.sameValue(x, NaN, "(1999, 11)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(1999, 12); x = DateValue(1999, 12);
assert.sameValue(x, NaN, "(1999, 12)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(2000, 0); x = DateValue(2000, 0);
assert.sameValue(x, NaN, "(2000, 0)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(2099, 11); x = DateValue(2099, 11);
assert.sameValue(x, NaN, "(2099, 11)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(2099, 12); x = DateValue(2099, 12);
assert.sameValue(x, NaN, "(2099, 12)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(2100, 0); x = DateValue(2100, 0);
assert.sameValue(x, NaN, "(2100, 0)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');

View File

@ -15,37 +15,37 @@ function DateValue(year, month, date, hours, minutes, seconds, ms) {
var x; var x;
x = DateValue(1899, 11, 31); x = DateValue(1899, 11, 31);
assert.sameValue(x, NaN, "(1899, 11, 31)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(1899, 12, 1); x = DateValue(1899, 12, 1);
assert.sameValue(x, NaN, "(1899, 12, 1)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(1900, 0, 1); x = DateValue(1900, 0, 1);
assert.sameValue(x, NaN, "(1900, 0, 1)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(1969, 11, 31); x = DateValue(1969, 11, 31);
assert.sameValue(x, NaN, "(1969, 11, 31)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(1969, 12, 1); x = DateValue(1969, 12, 1);
assert.sameValue(x, NaN, "(1969, 12, 1)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(1970, 0, 1); x = DateValue(1970, 0, 1);
assert.sameValue(x, NaN, "(1970, 0, 1)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(1999, 11, 31); x = DateValue(1999, 11, 31);
assert.sameValue(x, NaN, "(1999, 11, 31)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(1999, 12, 1); x = DateValue(1999, 12, 1);
assert.sameValue(x, NaN, "(1999, 12, 1)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(2000, 0, 1); x = DateValue(2000, 0, 1);
assert.sameValue(x, NaN, "(2000, 0, 1)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(2099, 11, 31); x = DateValue(2099, 11, 31);
assert.sameValue(x, NaN, "(2099, 11, 31)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(2099, 12, 1); x = DateValue(2099, 12, 1);
assert.sameValue(x, NaN, "(2099, 12, 1)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(2100, 0, 1); x = DateValue(2100, 0, 1);
assert.sameValue(x, NaN, "(2100, 0, 1)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');

View File

@ -15,37 +15,37 @@ function DateValue(year, month, date, hours, minutes, seconds, ms) {
var x; var x;
x = DateValue(1899, 11, 31, 23); x = DateValue(1899, 11, 31, 23);
assert.sameValue(x, NaN, "(1899, 11, 31, 23)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(1899, 12, 1, 0); x = DateValue(1899, 12, 1, 0);
assert.sameValue(x, NaN, "(1899, 12, 1, 0)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(1900, 0, 1, 0); x = DateValue(1900, 0, 1, 0);
assert.sameValue(x, NaN, "(1900, 0, 1, 0)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(1969, 11, 31, 23); x = DateValue(1969, 11, 31, 23);
assert.sameValue(x, NaN, "(1969, 11, 31, 23)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(1969, 12, 1, 0); x = DateValue(1969, 12, 1, 0);
assert.sameValue(x, NaN, "(1969, 12, 1, 0)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(1970, 0, 1, 0); x = DateValue(1970, 0, 1, 0);
assert.sameValue(x, NaN, "(1970, 0, 1, 0)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(1999, 11, 31, 23); x = DateValue(1999, 11, 31, 23);
assert.sameValue(x, NaN, "(1999, 11, 31, 23)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(1999, 12, 1, 0); x = DateValue(1999, 12, 1, 0);
assert.sameValue(x, NaN, "(1999, 12, 1, 0)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(2000, 0, 1, 0); x = DateValue(2000, 0, 1, 0);
assert.sameValue(x, NaN, "(2000, 0, 1, 0)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(2099, 11, 31, 23); x = DateValue(2099, 11, 31, 23);
assert.sameValue(x, NaN, "(2099, 11, 31, 23)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(2099, 12, 1, 0); x = DateValue(2099, 12, 1, 0);
assert.sameValue(x, NaN, "(2099, 12, 1, 0)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(2100, 0, 1, 0); x = DateValue(2100, 0, 1, 0);
assert.sameValue(x, NaN, "(2100, 0, 1, 0)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');

View File

@ -15,37 +15,37 @@ function DateValue(year, month, date, hours, minutes, seconds, ms) {
var x; var x;
x = DateValue(1899, 11, 31, 23, 59); x = DateValue(1899, 11, 31, 23, 59);
assert.sameValue(x, NaN, "(1899, 11, 31, 23, 59)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(1899, 12, 1, 0, 0); x = DateValue(1899, 12, 1, 0, 0);
assert.sameValue(x, NaN, "(1899, 12, 1, 0, 0)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(1900, 0, 1, 0, 0); x = DateValue(1900, 0, 1, 0, 0);
assert.sameValue(x, NaN, "(1900, 0, 1, 0, 0)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(1969, 11, 31, 23, 59); x = DateValue(1969, 11, 31, 23, 59);
assert.sameValue(x, NaN, "(1969, 11, 31, 23, 59)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(1969, 12, 1, 0, 0); x = DateValue(1969, 12, 1, 0, 0);
assert.sameValue(x, NaN, "(1969, 12, 1, 0, 0)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(1970, 0, 1, 0, 0); x = DateValue(1970, 0, 1, 0, 0);
assert.sameValue(x, NaN, "(1970, 0, 1, 0, 0)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(1999, 11, 31, 23, 59); x = DateValue(1999, 11, 31, 23, 59);
assert.sameValue(x, NaN, "(1999, 11, 31, 23, 59)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(1999, 12, 1, 0, 0); x = DateValue(1999, 12, 1, 0, 0);
assert.sameValue(x, NaN, "(1999, 12, 1, 0, 0)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(2000, 0, 1, 0, 0); x = DateValue(2000, 0, 1, 0, 0);
assert.sameValue(x, NaN, "(2000, 0, 1, 0, 0)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(2099, 11, 31, 23, 59); x = DateValue(2099, 11, 31, 23, 59);
assert.sameValue(x, NaN, "(2099, 11, 31, 23, 59)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(2099, 12, 1, 0, 0); x = DateValue(2099, 12, 1, 0, 0);
assert.sameValue(x, NaN, "(2099, 12, 1, 0, 0)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(2100, 0, 1, 0, 0); x = DateValue(2100, 0, 1, 0, 0);
assert.sameValue(x, NaN, "(2100, 0, 1, 0, 0)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');

View File

@ -15,37 +15,37 @@ function DateValue(year, month, date, hours, minutes, seconds, ms) {
var x; var x;
x = DateValue(1899, 11, 31, 23, 59, 59); x = DateValue(1899, 11, 31, 23, 59, 59);
assert.sameValue(x, NaN, "(1899, 11, 31, 23, 59, 59)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(1899, 12, 1, 0, 0, 0); x = DateValue(1899, 12, 1, 0, 0, 0);
assert.sameValue(x, NaN, "(1899, 12, 1, 0, 0, 0)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(1900, 0, 1, 0, 0, 0); x = DateValue(1900, 0, 1, 0, 0, 0);
assert.sameValue(x, NaN, "(1900, 0, 1, 0, 0, 0)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(1969, 11, 31, 23, 59, 59); x = DateValue(1969, 11, 31, 23, 59, 59);
assert.sameValue(x, NaN, "(1969, 11, 31, 23, 59, 59)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(1969, 12, 1, 0, 0, 0); x = DateValue(1969, 12, 1, 0, 0, 0);
assert.sameValue(x, NaN, "(1969, 12, 1, 0, 0, 0)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(1970, 0, 1, 0, 0, 0); x = DateValue(1970, 0, 1, 0, 0, 0);
assert.sameValue(x, NaN, "(1970, 0, 1, 0, 0, 0)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(1999, 11, 31, 23, 59, 59); x = DateValue(1999, 11, 31, 23, 59, 59);
assert.sameValue(x, NaN, "(1999, 11, 31, 23, 59, 59)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(1999, 12, 1, 0, 0, 0); x = DateValue(1999, 12, 1, 0, 0, 0);
assert.sameValue(x, NaN, "(1999, 12, 1, 0, 0, 0)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(2000, 0, 1, 0, 0, 0); x = DateValue(2000, 0, 1, 0, 0, 0);
assert.sameValue(x, NaN, "(2000, 0, 1, 0, 0, 0)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(2099, 11, 31, 23, 59, 59); x = DateValue(2099, 11, 31, 23, 59, 59);
assert.sameValue(x, NaN, "(2099, 11, 31, 23, 59, 59)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(2099, 12, 1, 0, 0, 0); x = DateValue(2099, 12, 1, 0, 0, 0);
assert.sameValue(x, NaN, "(2099, 12, 1, 0, 0, 0)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');
x = DateValue(2100, 0, 1, 0, 0, 0); x = DateValue(2100, 0, 1, 0, 0, 0);
assert.sameValue(x, NaN, "(2100, 0, 1, 0, 0, 0)"); assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');

View File

@ -9,147 +9,130 @@ esid: sec-date-value
description: Checking types of newly created objects and it values description: Checking types of newly created objects and it values
includes: [dateConstants.js] includes: [dateConstants.js]
---*/ ---*/
assert.sameValue(
typeof new Date(date_1899_end),
"object",
'The value of `typeof new Date(date_1899_end)` is expected to be "object"'
);
if (typeof new Date(date_1899_end) !== "object") { assert.notSameValue(new Date(date_1899_end), undefined, 'new Date(date_1899_end) is expected to not equal ``undefined``');
throw new Test262Error("#1.1: typeof new Date(date_1899_end) === 'object'");
}
if (new Date(date_1899_end) === undefined) {
throw new Test262Error("#1.2: new Date(date_1899_end) === undefined");
}
var x13 = new Date(date_1899_end); var x13 = new Date(date_1899_end);
if (typeof x13 !== "object") { assert.sameValue(typeof x13, "object", 'The value of `typeof x13` is expected to be "object"');
throw new Test262Error("#1.3: typeof new Date(date_1899_end) !== 'object'");
}
var x14 = new Date(date_1899_end); var x14 = new Date(date_1899_end);
if (x14 === undefined) { assert.notSameValue(x14, undefined, 'The value of x14 is expected to not equal ``undefined``');
throw new Test262Error("#1.4: new Date(date_1899_end) !== undefined");
}
if (typeof new Date(date_1900_start) !== "object") { assert.sameValue(
throw new Test262Error("#2.1: typeof new Date(date_1900_start) === 'object'"); typeof new Date(date_1900_start),
} "object",
'The value of `typeof new Date(date_1900_start)` is expected to be "object"'
);
if (new Date(date_1900_start) === undefined) { assert.notSameValue(
throw new Test262Error("#2.2: new Date(date_1900_start) === undefined"); new Date(date_1900_start),
} undefined,
'new Date(date_1900_start) is expected to not equal ``undefined``'
);
var x23 = new Date(date_1900_start); var x23 = new Date(date_1900_start);
if (typeof x23 !== "object") { assert.sameValue(typeof x23, "object", 'The value of `typeof x23` is expected to be "object"');
throw new Test262Error("#2.3: typeof new Date(date_1900_start) !== 'object'");
}
var x24 = new Date(date_1900_start); var x24 = new Date(date_1900_start);
if (x24 === undefined) { assert.notSameValue(x24, undefined, 'The value of x24 is expected to not equal ``undefined``');
throw new Test262Error("#2.4: new Date(date_1900_start) !== undefined");
}
if (typeof new Date(date_1969_end) !== "object") { assert.sameValue(
throw new Test262Error("#3.1: typeof new Date(date_1969_end) === 'object'"); typeof new Date(date_1969_end),
} "object",
'The value of `typeof new Date(date_1969_end)` is expected to be "object"'
);
if (new Date(date_1969_end) === undefined) { assert.notSameValue(new Date(date_1969_end), undefined, 'new Date(date_1969_end) is expected to not equal ``undefined``');
throw new Test262Error("#3.2: new Date(date_1969_end) === undefined");
}
var x33 = new Date(date_1969_end); var x33 = new Date(date_1969_end);
if (typeof x33 !== "object") { assert.sameValue(typeof x33, "object", 'The value of `typeof x33` is expected to be "object"');
throw new Test262Error("#3.3: typeof new Date(date_1969_end) !== 'object'");
}
var x34 = new Date(date_1969_end); var x34 = new Date(date_1969_end);
if (x34 === undefined) { assert.notSameValue(x34, undefined, 'The value of x34 is expected to not equal ``undefined``');
throw new Test262Error("#3.4: new Date(date_1969_end) !== undefined");
}
if (typeof new Date(date_1970_start) !== "object") { assert.sameValue(
throw new Test262Error("#4.1: typeof new Date(date_1970_start) === 'object'"); typeof new Date(date_1970_start),
} "object",
'The value of `typeof new Date(date_1970_start)` is expected to be "object"'
);
if (new Date(date_1970_start) === undefined) { assert.notSameValue(
throw new Test262Error("#4.2: new Date(date_1970_start) === undefined"); new Date(date_1970_start),
} undefined,
'new Date(date_1970_start) is expected to not equal ``undefined``'
);
var x43 = new Date(date_1970_start); var x43 = new Date(date_1970_start);
if (typeof x43 !== "object") { assert.sameValue(typeof x43, "object", 'The value of `typeof x43` is expected to be "object"');
throw new Test262Error("#4.3: typeof new Date(date_1970_start) !== 'object'");
}
var x44 = new Date(date_1970_start); var x44 = new Date(date_1970_start);
if (x44 === undefined) { assert.notSameValue(x44, undefined, 'The value of x44 is expected to not equal ``undefined``');
throw new Test262Error("#4.4: new Date(date_1970_start) !== undefined");
}
if (typeof new Date(date_1999_end) !== "object") { assert.sameValue(
throw new Test262Error("#5.1: typeof new Date(date_1999_end) === 'object'"); typeof new Date(date_1999_end),
} "object",
'The value of `typeof new Date(date_1999_end)` is expected to be "object"'
);
if (new Date(date_1999_end) === undefined) { assert.notSameValue(new Date(date_1999_end), undefined, 'new Date(date_1999_end) is expected to not equal ``undefined``');
throw new Test262Error("#5.2: new Date(date_1999_end) === undefined");
}
var x53 = new Date(date_1999_end); var x53 = new Date(date_1999_end);
if (typeof x53 !== "object") { assert.sameValue(typeof x53, "object", 'The value of `typeof x53` is expected to be "object"');
throw new Test262Error("#5.3: typeof new Date(date_1999_end) !== 'object'");
}
var x54 = new Date(date_1999_end); var x54 = new Date(date_1999_end);
if (x54 === undefined) { assert.notSameValue(x54, undefined, 'The value of x54 is expected to not equal ``undefined``');
throw new Test262Error("#5.4: new Date(date_1999_end) !== undefined");
}
if (typeof new Date(date_2000_start) !== "object") { assert.sameValue(
throw new Test262Error("#6.1: typeof new Date(date_2000_start) === 'object'"); typeof new Date(date_2000_start),
} "object",
'The value of `typeof new Date(date_2000_start)` is expected to be "object"'
);
if (new Date(date_2000_start) === undefined) { assert.notSameValue(
throw new Test262Error("#6.2: new Date(date_2000_start) === undefined"); new Date(date_2000_start),
} undefined,
'new Date(date_2000_start) is expected to not equal ``undefined``'
);
var x63 = new Date(date_2000_start); var x63 = new Date(date_2000_start);
if (typeof x63 !== "object") { assert.sameValue(typeof x63, "object", 'The value of `typeof x63` is expected to be "object"');
throw new Test262Error("#6.3: typeof new Date(date_2000_start) !== 'object'");
}
var x64 = new Date(date_2000_start); var x64 = new Date(date_2000_start);
if (x64 === undefined) { assert.notSameValue(x64, undefined, 'The value of x64 is expected to not equal ``undefined``');
throw new Test262Error("#6.4: new Date(date_2000_start) !== undefined");
}
if (typeof new Date(date_2099_end) !== "object") { assert.sameValue(
throw new Test262Error("#7.1: typeof new Date(date_2099_end) === 'object'"); typeof new Date(date_2099_end),
} "object",
'The value of `typeof new Date(date_2099_end)` is expected to be "object"'
);
if (new Date(date_2099_end) === undefined) { assert.notSameValue(new Date(date_2099_end), undefined, 'new Date(date_2099_end) is expected to not equal ``undefined``');
throw new Test262Error("#7.2: new Date(date_2099_end) === undefined");
}
var x73 = new Date(date_2099_end); var x73 = new Date(date_2099_end);
if (typeof x73 !== "object") { assert.sameValue(typeof x73, "object", 'The value of `typeof x73` is expected to be "object"');
throw new Test262Error("#7.3: typeof new Date(date_2099_end) !== 'object'");
}
var x74 = new Date(date_2099_end); var x74 = new Date(date_2099_end);
if (x74 === undefined) { assert.notSameValue(x74, undefined, 'The value of x74 is expected to not equal ``undefined``');
throw new Test262Error("#7.4: new Date(date_2099_end) !== undefined");
}
if (typeof new Date(date_2100_start) !== "object") { assert.sameValue(
throw new Test262Error("#8.1: typeof new Date(date_2100_start) === 'object'"); typeof new Date(date_2100_start),
} "object",
'The value of `typeof new Date(date_2100_start)` is expected to be "object"'
);
if (new Date(date_2100_start) === undefined) { assert.notSameValue(
throw new Test262Error("#8.2: new Date(date_2100_start) === undefined"); new Date(date_2100_start),
} undefined,
'new Date(date_2100_start) is expected to not equal ``undefined``'
);
var x83 = new Date(date_2100_start); var x83 = new Date(date_2100_start);
if (typeof x83 !== "object") { assert.sameValue(typeof x83, "object", 'The value of `typeof x83` is expected to be "object"');
throw new Test262Error("#8.3: typeof new Date(date_2100_start) !== 'object'");
}
var x84 = new Date(date_2100_start); var x84 = new Date(date_2100_start);
if (x84 === undefined) { assert.notSameValue(x84, undefined, 'The value of x84 is expected to not equal ``undefined``');
throw new Test262Error("#8.4: new Date(date_2100_start) !== undefined");
}

View File

@ -12,121 +12,153 @@ includes: [dateConstants.js]
---*/ ---*/
var x11 = new Date(date_1899_end); var x11 = new Date(date_1899_end);
if (typeof x11.constructor.prototype !== "object") {
throw new Test262Error("#1.1: typeof x11.constructor.prototype === 'object'"); assert.sameValue(
} typeof x11.constructor.prototype,
"object",
'The value of `typeof x11.constructor.prototype` is expected to be "object"'
);
var x12 = new Date(date_1899_end); var x12 = new Date(date_1899_end);
if (!Date.prototype.isPrototypeOf(x12)) { assert(Date.prototype.isPrototypeOf(x12), 'Date.prototype.isPrototypeOf(x12) must return true');
throw new Test262Error('#1.2: Date.prototype.isPrototypeOf(x12)');
}
var x13 = new Date(date_1899_end); var x13 = new Date(date_1899_end);
if (Date.prototype !== x13.constructor.prototype) {
throw new Test262Error("#1.3: Date.prototype !== x13.constructor.prototype"); assert.sameValue(
} Date.prototype,
x13.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x13.constructor.prototype'
);
var x21 = new Date(date_1900_start); var x21 = new Date(date_1900_start);
if (typeof x21.constructor.prototype !== "object") {
throw new Test262Error("#2.1: typeof x21.constructor.prototype === 'object'"); assert.sameValue(
} typeof x21.constructor.prototype,
"object",
'The value of `typeof x21.constructor.prototype` is expected to be "object"'
);
var x22 = new Date(date_1900_start); var x22 = new Date(date_1900_start);
if (!Date.prototype.isPrototypeOf(x22)) { assert(Date.prototype.isPrototypeOf(x22), 'Date.prototype.isPrototypeOf(x22) must return true');
throw new Test262Error('#2.2: Date.prototype.isPrototypeOf(x22)');
}
var x23 = new Date(date_1900_start); var x23 = new Date(date_1900_start);
if (Date.prototype !== x23.constructor.prototype) {
throw new Test262Error("#2.3: Date.prototype !== x23.constructor.prototype"); assert.sameValue(
} Date.prototype,
x23.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x23.constructor.prototype'
);
var x31 = new Date(date_1969_end); var x31 = new Date(date_1969_end);
if (typeof x31.constructor.prototype !== "object") {
throw new Test262Error("#3.1: typeof x31.constructor.prototype === 'object'"); assert.sameValue(
} typeof x31.constructor.prototype,
"object",
'The value of `typeof x31.constructor.prototype` is expected to be "object"'
);
var x32 = new Date(date_1969_end); var x32 = new Date(date_1969_end);
if (!Date.prototype.isPrototypeOf(x32)) { assert(Date.prototype.isPrototypeOf(x32), 'Date.prototype.isPrototypeOf(x32) must return true');
throw new Test262Error('#3.2: Date.prototype.isPrototypeOf(x32)');
}
var x33 = new Date(date_1969_end); var x33 = new Date(date_1969_end);
if (Date.prototype !== x33.constructor.prototype) {
throw new Test262Error("#3.3: Date.prototype !== x33.constructor.prototype"); assert.sameValue(
} Date.prototype,
x33.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x33.constructor.prototype'
);
var x41 = new Date(date_1970_start); var x41 = new Date(date_1970_start);
if (typeof x41.constructor.prototype !== "object") {
throw new Test262Error("#4.1: typeof x11.constructor.prototype === 'object'"); assert.sameValue(
} typeof x41.constructor.prototype,
"object",
'The value of `typeof x41.constructor.prototype` is expected to be "object"'
);
var x42 = new Date(date_1970_start); var x42 = new Date(date_1970_start);
if (!Date.prototype.isPrototypeOf(x42)) { assert(Date.prototype.isPrototypeOf(x42), 'Date.prototype.isPrototypeOf(x42) must return true');
throw new Test262Error('#4.2: Date.prototype.isPrototypeOf(x42)');
}
var x43 = new Date(date_1970_start); var x43 = new Date(date_1970_start);
if (Date.prototype !== x43.constructor.prototype) {
throw new Test262Error("#4.3: Date.prototype !== x43.constructor.prototype"); assert.sameValue(
} Date.prototype,
x43.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x43.constructor.prototype'
);
var x51 = new Date(date_1999_end); var x51 = new Date(date_1999_end);
if (typeof x51.constructor.prototype !== "object") {
throw new Test262Error("#5.1: typeof x51.constructor.prototype === 'object'"); assert.sameValue(
} typeof x51.constructor.prototype,
"object",
'The value of `typeof x51.constructor.prototype` is expected to be "object"'
);
var x52 = new Date(date_1999_end); var x52 = new Date(date_1999_end);
if (!Date.prototype.isPrototypeOf(x52)) { assert(Date.prototype.isPrototypeOf(x52), 'Date.prototype.isPrototypeOf(x52) must return true');
throw new Test262Error('#5.2: Date.prototype.isPrototypeOf(x52)');
}
var x53 = new Date(date_1999_end); var x53 = new Date(date_1999_end);
if (Date.prototype !== x53.constructor.prototype) {
throw new Test262Error("#5.3: Date.prototype !== x53.constructor.prototype"); assert.sameValue(
} Date.prototype,
x53.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x53.constructor.prototype'
);
var x61 = new Date(date_2000_start); var x61 = new Date(date_2000_start);
if (typeof x61.constructor.prototype !== "object") {
throw new Test262Error("#6.1: typeof x61.constructor.prototype === 'object'"); assert.sameValue(
} typeof x61.constructor.prototype,
"object",
'The value of `typeof x61.constructor.prototype` is expected to be "object"'
);
var x62 = new Date(date_2000_start); var x62 = new Date(date_2000_start);
if (!Date.prototype.isPrototypeOf(x62)) { assert(Date.prototype.isPrototypeOf(x62), 'Date.prototype.isPrototypeOf(x62) must return true');
throw new Test262Error('#6.2: Date.prototype.isPrototypeOf(x62)');
}
var x63 = new Date(date_2000_start); var x63 = new Date(date_2000_start);
if (Date.prototype !== x63.constructor.prototype) {
throw new Test262Error("#6.3: Date.prototype !== x63.constructor.prototype"); assert.sameValue(
} Date.prototype,
x63.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x63.constructor.prototype'
);
var x71 = new Date(date_2099_end); var x71 = new Date(date_2099_end);
if (typeof x71.constructor.prototype !== "object") {
throw new Test262Error("#7.1: typeof x71.constructor.prototype === 'object'"); assert.sameValue(
} typeof x71.constructor.prototype,
"object",
'The value of `typeof x71.constructor.prototype` is expected to be "object"'
);
var x72 = new Date(date_2099_end); var x72 = new Date(date_2099_end);
if (!Date.prototype.isPrototypeOf(x72)) { assert(Date.prototype.isPrototypeOf(x72), 'Date.prototype.isPrototypeOf(x72) must return true');
throw new Test262Error('#7.2: Date.prototype.isPrototypeOf(x72)');
}
var x73 = new Date(date_2099_end); var x73 = new Date(date_2099_end);
if (Date.prototype !== x73.constructor.prototype) {
throw new Test262Error("#7.3: Date.prototype !== x73.constructor.prototype"); assert.sameValue(
} Date.prototype,
x73.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x73.constructor.prototype'
);
var x81 = new Date(date_2100_start); var x81 = new Date(date_2100_start);
if (typeof x81.constructor.prototype !== "object") {
throw new Test262Error("#8.1: typeof x81.constructor.prototype === 'object'"); assert.sameValue(
} typeof x81.constructor.prototype,
"object",
'The value of `typeof x81.constructor.prototype` is expected to be "object"'
);
var x82 = new Date(date_2100_start); var x82 = new Date(date_2100_start);
if (!Date.prototype.isPrototypeOf(x82)) { assert(Date.prototype.isPrototypeOf(x82), 'Date.prototype.isPrototypeOf(x82) must return true');
throw new Test262Error('#8.2: Date.prototype.isPrototypeOf(x82)');
}
var x83 = new Date(date_2100_start); var x83 = new Date(date_2100_start);
if (Date.prototype !== x83.constructor.prototype) {
throw new Test262Error("#8.3: Date.prototype !== x83.constructor.prototype"); assert.sameValue(
} Date.prototype,
x83.constructor.prototype,
'The value of Date.prototype is expected to equal the value of x83.constructor.prototype'
);

View File

@ -11,41 +11,65 @@ includes: [dateConstants.js]
---*/ ---*/
var x1 = new Date(date_1899_end); var x1 = new Date(date_1899_end);
if (Object.prototype.toString.call(x1) !== "[object Date]") {
throw new Test262Error("#1: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x1),
"[object Date]",
'Object.prototype.toString.call(new Date(date_1899_end)) must return "[object Date]"'
);
var x2 = new Date(date_1900_start); var x2 = new Date(date_1900_start);
if (Object.prototype.toString.call(x2) !== "[object Date]") {
throw new Test262Error("#2: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x2),
"[object Date]",
'Object.prototype.toString.call(new Date(date_1900_start)) must return "[object Date]"'
);
var x3 = new Date(date_1969_end); var x3 = new Date(date_1969_end);
if (Object.prototype.toString.call(x3) !== "[object Date]") {
throw new Test262Error("#3: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x3),
"[object Date]",
'Object.prototype.toString.call(new Date(date_1969_end)) must return "[object Date]"'
);
var x4 = new Date(date_1970_start); var x4 = new Date(date_1970_start);
if (Object.prototype.toString.call(x4) !== "[object Date]") {
throw new Test262Error("#4: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x4),
"[object Date]",
'Object.prototype.toString.call(new Date(date_1970_start)) must return "[object Date]"'
);
var x5 = new Date(date_1999_end); var x5 = new Date(date_1999_end);
if (Object.prototype.toString.call(x5) !== "[object Date]") {
throw new Test262Error("#5: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x5),
"[object Date]",
'Object.prototype.toString.call(new Date(date_1999_end)) must return "[object Date]"'
);
var x6 = new Date(date_2000_start); var x6 = new Date(date_2000_start);
if (Object.prototype.toString.call(x6) !== "[object Date]") {
throw new Test262Error("#6: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x6),
"[object Date]",
'Object.prototype.toString.call(new Date(date_2000_start)) must return "[object Date]"'
);
var x7 = new Date(date_2099_end); var x7 = new Date(date_2099_end);
if (Object.prototype.toString.call(x7) !== "[object Date]") {
throw new Test262Error("#7: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x7),
"[object Date]",
'Object.prototype.toString.call(new Date(date_2099_end)) must return "[object Date]"'
);
var x8 = new Date(date_2100_start); var x8 = new Date(date_2100_start);
if (Object.prototype.toString.call(x8) !== "[object Date]") {
throw new Test262Error("#8: The [[Class]] property of the newly constructed object is set to 'Date'"); assert.sameValue(
} Object.prototype.toString.call(x8),
"[object Date]",
'Object.prototype.toString.call(new Date(date_2100_start)) must return "[object Date]"'
);

View File

@ -13,41 +13,25 @@ includes: [dateConstants.js]
Date.prototype.toString = Object.prototype.toString; Date.prototype.toString = Object.prototype.toString;
var x1 = new Date(date_1899_end); var x1 = new Date(date_1899_end);
if (x1.toString() !== "[object Date]") { assert.sameValue(x1.toString(), "[object Date]", 'x1.toString() must return "[object Date]"');
throw new Test262Error("#1: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x2 = new Date(date_1900_start); var x2 = new Date(date_1900_start);
if (x2.toString() !== "[object Date]") { assert.sameValue(x2.toString(), "[object Date]", 'x2.toString() must return "[object Date]"');
throw new Test262Error("#2: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x3 = new Date(date_1969_end); var x3 = new Date(date_1969_end);
if (x3.toString() !== "[object Date]") { assert.sameValue(x3.toString(), "[object Date]", 'x3.toString() must return "[object Date]"');
throw new Test262Error("#3: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x4 = new Date(date_1970_start); var x4 = new Date(date_1970_start);
if (x4.toString() !== "[object Date]") { assert.sameValue(x4.toString(), "[object Date]", 'x4.toString() must return "[object Date]"');
throw new Test262Error("#4: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x5 = new Date(date_1999_end); var x5 = new Date(date_1999_end);
if (x5.toString() !== "[object Date]") { assert.sameValue(x5.toString(), "[object Date]", 'x5.toString() must return "[object Date]"');
throw new Test262Error("#5: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x6 = new Date(date_2000_start); var x6 = new Date(date_2000_start);
if (x6.toString() !== "[object Date]") { assert.sameValue(x6.toString(), "[object Date]", 'x6.toString() must return "[object Date]"');
throw new Test262Error("#6: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x7 = new Date(date_2099_end); var x7 = new Date(date_2099_end);
if (x7.toString() !== "[object Date]") { assert.sameValue(x7.toString(), "[object Date]", 'x7.toString() must return "[object Date]"');
throw new Test262Error("#7: The [[Class]] property of the newly constructed object is set to 'Date'");
}
var x8 = new Date(date_2100_start); var x8 = new Date(date_2100_start);
if (x8.toString() !== "[object Date]") { assert.sameValue(x8.toString(), "[object Date]", 'x8.toString() must return "[object Date]"');
throw new Test262Error("#8: The [[Class]] property of the newly constructed object is set to 'Date'");
}

View File

@ -6,7 +6,4 @@ info: The Date constructor has the property "prototype"
esid: sec-date-constructor esid: sec-date-constructor
description: Checking existence of the property "prototype" description: Checking existence of the property "prototype"
---*/ ---*/
assert(Date.hasOwnProperty("prototype"), 'Date.hasOwnProperty("prototype") must return true');
if (!Date.hasOwnProperty("prototype")) {
throw new Test262Error('#1: The Date constructor has the property "prototype"');
}

View File

@ -6,7 +6,4 @@ info: The Date constructor has the property "parse"
esid: sec-date-constructor esid: sec-date-constructor
description: Checking existence of the property "parse" description: Checking existence of the property "parse"
---*/ ---*/
assert(Date.hasOwnProperty("parse"), 'Date.hasOwnProperty("parse") must return true');
if (!Date.hasOwnProperty("parse")) {
throw new Test262Error('#1: The Date constructor has the property "parse"');
}

View File

@ -6,7 +6,4 @@ info: The Date constructor has the property "UTC"
esid: sec-date-constructor esid: sec-date-constructor
description: Checking existence of the property "UTC" description: Checking existence of the property "UTC"
---*/ ---*/
assert(Date.hasOwnProperty("UTC"), 'Date.hasOwnProperty("UTC") must return true');
if (!Date.hasOwnProperty("UTC")) {
throw new Test262Error('#1: The Date constructor has the property "UTC"');
}

View File

@ -8,8 +8,4 @@ info: |
esid: sec-date-constructor esid: sec-date-constructor
description: Checking Function.prototype.isPrototypeOf(Date) description: Checking Function.prototype.isPrototypeOf(Date)
---*/ ---*/
assert(Function.prototype.isPrototypeOf(Date), 'Function.prototype.isPrototypeOf(Date) must return true');
//CHECK#1
if (!(Function.prototype.isPrototypeOf(Date))) {
throw new Test262Error('#1: the value of the internal [[Prototype]] property of the Date constructor is the Function prototype object.');
}

View File

@ -6,13 +6,5 @@ info: Date constructor has length property whose value is 7
esid: sec-date-constructor esid: sec-date-constructor
description: Checking Date.length property description: Checking Date.length property
---*/ ---*/
assert(Date.hasOwnProperty("length"), 'Date.hasOwnProperty("length") must return true');
//CHECK#1 assert.sameValue(Date.length, 7, 'The value of Date.length is expected to be 7');
if (!Date.hasOwnProperty("length")) {
throw new Test262Error('#1: Date constructor has length property');
}
//CHECK#2
if (Date.length !== 7) {
throw new Test262Error('#2: Date constructor length property value should be 7');
}

View File

@ -9,10 +9,9 @@ description: Checking absence of ReadOnly attribute
---*/ ---*/
var x = Date.UTC; var x = Date.UTC;
if (x === 1) if (x === 1) {
Date.UTC = 2; Date.UTC = 2;
else } else {
Date.UTC = 1; Date.UTC = 1;
if (Date.UTC === x) {
throw new Test262Error('#1: The Date.UTC has not the attribute ReadOnly');
} }
assert.notSameValue(Date.UTC, x, 'The value of Date.UTC is expected to not equal the value of `x`');

View File

@ -7,11 +7,5 @@ info: The Date property "UTC" has { DontEnum } attributes
es5id: 15.9.4.3_A1_T2 es5id: 15.9.4.3_A1_T2
description: Checking absence of DontDelete attribute description: Checking absence of DontDelete attribute
---*/ ---*/
assert.notSameValue(delete Date.UTC, false, 'The value of delete Date.UTC is not false');
if (delete Date.UTC === false) { assert(!Date.hasOwnProperty('UTC'), 'The value of !Date.hasOwnProperty(\'UTC\') is expected to be true');
throw new Test262Error('#1: The Date.UTC property has not the attributes DontDelete');
}
if (Date.hasOwnProperty('UTC')) {
throw new Test262Error('#2: The Date.UTC property has not the attributes DontDelete');
}

View File

@ -7,13 +7,11 @@ info: The Date property "UTC" has { DontEnum } attributes
es5id: 15.9.4.3_A1_T3 es5id: 15.9.4.3_A1_T3
description: Checking DontEnum attribute description: Checking DontEnum attribute
---*/ ---*/
assert(
if (Date.propertyIsEnumerable('UTC')) { !Date.propertyIsEnumerable('UTC'),
throw new Test262Error('#1: The Date.UTC property has the attribute DontEnum'); 'The value of !Date.propertyIsEnumerable(\'UTC\') is expected to be true'
} );
for (var x in Date) { for (var x in Date) {
if (x === "UTC") { assert.notSameValue(x, "UTC", 'The value of x is not "UTC"');
throw new Test262Error('#2: The Date.UTC has the attribute DontEnum');
}
} }

View File

@ -7,11 +7,5 @@ info: The "length" property of the "UTC" is 7
es5id: 15.9.4.3_A2_T1 es5id: 15.9.4.3_A2_T1
description: The "length" property of the "UTC" is 7 description: The "length" property of the "UTC" is 7
---*/ ---*/
assert.sameValue(Date.UTC.hasOwnProperty("length"), true, 'Date.UTC.hasOwnProperty("length") must return true');
if (Date.UTC.hasOwnProperty("length") !== true) { assert.sameValue(Date.UTC.length, 7, 'The value of Date.UTC.length is expected to be 7');
throw new Test262Error('#1: The UTC has a "length" property');
}
if (Date.UTC.length !== 7) {
throw new Test262Error('#2: The "length" property of the UTC is 7');
}

View File

@ -13,6 +13,4 @@ includes: [propertyHelper.js]
var x = Date.UTC.length; var x = Date.UTC.length;
verifyNotWritable(Date.UTC, "length", null, 1); verifyNotWritable(Date.UTC, "length", null, 1);
if (Date.UTC.length !== x) { assert.sameValue(Date.UTC.length, x, 'The value of Date.UTC.length is expected to equal the value of x');
throw new Test262Error('#1: The Date.UTC.length has the attribute ReadOnly');
}

View File

@ -10,10 +10,9 @@ es5id: 15.9.4.3_A3_T2
description: Checking DontDelete attribute description: Checking DontDelete attribute
---*/ ---*/
if (delete Date.UTC.length !== true) { assert.sameValue(delete Date.UTC.length, true, 'The value of `delete Date.UTC.length` is expected to be true');
throw new Test262Error('#1: The Date.UTC.length property does not have the attributes DontDelete');
}
if (Date.UTC.hasOwnProperty('length')) { assert(
throw new Test262Error('#2: The Date.UTC.length property does not have the attributes DontDelete'); !Date.UTC.hasOwnProperty('length'),
} 'The value of !Date.UTC.hasOwnProperty(\'length\') is expected to be true'
);

View File

@ -9,13 +9,11 @@ info: |
es5id: 15.9.4.3_A3_T3 es5id: 15.9.4.3_A3_T3
description: Checking DontEnum attribute description: Checking DontEnum attribute
---*/ ---*/
assert(
if (Date.UTC.propertyIsEnumerable('length')) { !Date.UTC.propertyIsEnumerable('length'),
throw new Test262Error('#1: The Date.UTC.length property has the attribute DontEnum'); 'The value of !Date.UTC.propertyIsEnumerable(\'length\') is expected to be true'
} );
for (var x in Date.UTC) { for (var x in Date.UTC) {
if (x === "length") { assert.notSameValue(x, "length", 'The value of x is not "length"');
throw new Test262Error('#2: The Date.UTC.length has the attribute DontEnum');
}
} }

View File

@ -8,10 +8,9 @@ description: Checking absence of ReadOnly attribute
---*/ ---*/
var x = Date.parse; var x = Date.parse;
if (x === 1) if (x === 1) {
Date.parse = 2; Date.parse = 2;
else } else {
Date.parse = 1; Date.parse = 1;
if (Date.parse === x) {
throw new Test262Error('#1: The Date.parse has not the attribute ReadOnly');
} }
assert.notSameValue(Date.parse, x, 'The value of Date.parse is expected to not equal the value of `x`');

View File

@ -6,11 +6,5 @@ info: The Date property "parse" has { DontEnum } attributes
esid: sec-date.parse esid: sec-date.parse
description: Checking absence of DontDelete attribute description: Checking absence of DontDelete attribute
---*/ ---*/
assert.notSameValue(delete Date.parse, false, 'The value of delete Date.parse is not false');
if (delete Date.parse === false) { assert(!Date.hasOwnProperty('parse'), 'The value of !Date.hasOwnProperty(\'parse\') is expected to be true');
throw new Test262Error('#1: The Date.parse property has not the attributes DontDelete');
}
if (Date.hasOwnProperty('parse')) {
throw new Test262Error('#2: The Date.parse property has not the attributes DontDelete');
}

View File

@ -6,13 +6,11 @@ info: The Date property "parse" has { DontEnum } attributes
esid: sec-date.parse esid: sec-date.parse
description: Checking DontEnum attribute description: Checking DontEnum attribute
---*/ ---*/
assert(
if (Date.propertyIsEnumerable('parse')) { !Date.propertyIsEnumerable('parse'),
throw new Test262Error('#1: The Date.parse property has the attribute DontEnum'); 'The value of !Date.propertyIsEnumerable(\'parse\') is expected to be true'
} );
for (var x in Date) { for (var x in Date) {
if (x === "parse") { assert.notSameValue(x, "parse", 'The value of x is not "parse"');
throw new Test262Error('#2: The Date.parse has the attribute DontEnum');
}
} }

View File

@ -6,11 +6,5 @@ info: The "length" property of the "parse" is 1
esid: sec-date.parse esid: sec-date.parse
description: The "length" property of the "parse" is 1 description: The "length" property of the "parse" is 1
---*/ ---*/
assert.sameValue(Date.parse.hasOwnProperty("length"), true, 'Date.parse.hasOwnProperty("length") must return true');
if (Date.parse.hasOwnProperty("length") !== true) { assert.sameValue(Date.parse.length, 1, 'The value of Date.parse.length is expected to be 1');
throw new Test262Error('#1: The parse has a "length" property');
}
if (Date.parse.length !== 1) {
throw new Test262Error('#2: The "length" property of the parse is 1');
}

View File

@ -12,6 +12,4 @@ includes: [propertyHelper.js]
var x = Date.parse.length; var x = Date.parse.length;
verifyNotWritable(Date.parse, "length", null, 1); verifyNotWritable(Date.parse, "length", null, 1);
if (Date.parse.length !== x) { assert.sameValue(Date.parse.length, x, 'The value of Date.parse.length is expected to equal the value of x');
throw new Test262Error('#1: The Date.parse.length has the attribute ReadOnly');
}

View File

@ -8,11 +8,9 @@ info: |
esid: sec-date.parse esid: sec-date.parse
description: Checking DontDelete attribute description: Checking DontDelete attribute
---*/ ---*/
assert.sameValue(delete Date.parse.length, true, 'The value of `delete Date.parse.length` is expected to be true');
if (delete Date.parse.length !== true) { assert(
throw new Test262Error('#1: The Date.parse.length property does not have the attributes DontDelete'); !Date.parse.hasOwnProperty('length'),
} 'The value of !Date.parse.hasOwnProperty(\'length\') is expected to be true'
);
if (Date.parse.hasOwnProperty('length')) {
throw new Test262Error('#2: The Date.parse.length property does not have the attributes DontDelete');
}

View File

@ -8,13 +8,11 @@ info: |
esid: sec-date.parse esid: sec-date.parse
description: Checking DontEnum attribute description: Checking DontEnum attribute
---*/ ---*/
assert(
if (Date.parse.propertyIsEnumerable('length')) { !Date.parse.propertyIsEnumerable('length'),
throw new Test262Error('#1: The Date.parse.length property has the attribute DontEnum'); 'The value of !Date.parse.propertyIsEnumerable(\'length\') is expected to be true'
} );
for (var x in Date.parse) { for (var x in Date.parse) {
if (x === "length") { assert.notSameValue(x, "length", 'The value of x is not "length"');
throw new Test262Error('#2: The Date.parse.length has the attribute DontEnum');
}
} }

View File

@ -12,6 +12,4 @@ includes: [propertyHelper.js]
var x = Date.prototype; var x = Date.prototype;
verifyNotWritable(Date, "prototype", null, 1); verifyNotWritable(Date, "prototype", null, 1);
if (Date.prototype !== x) { assert.sameValue(Date.prototype, x, 'The value of Date.prototype is expected to equal the value of x');
throw new Test262Error('#1: The Date.prototype has the attribute ReadOnly');
}

View File

@ -13,11 +13,11 @@ includes: [propertyHelper.js]
verifyNotConfigurable(Date, "prototype"); verifyNotConfigurable(Date, "prototype");
try { try {
if (delete Date.prototype !== false) { assert.sameValue(delete Date.prototype, false);
throw new Test262Error('#1: The Date.prototype property has the attributes DontDelete');
}
} catch (e) { } catch (e) {
if (e instanceof Test262Error) throw e; if (e instanceof Test262Error) {
throw e;
}
assert(e instanceof TypeError); assert(e instanceof TypeError);
} }

View File

@ -8,13 +8,11 @@ info: |
esid: sec-date.prototype esid: sec-date.prototype
description: Checking DontEnum attribute description: Checking DontEnum attribute
---*/ ---*/
assert(
if (Date.propertyIsEnumerable('prototype')) { !Date.propertyIsEnumerable('prototype'),
throw new Test262Error('#1: The Date.prototype property has the attribute DontEnum'); 'The value of !Date.propertyIsEnumerable(\'prototype\') is expected to be true'
} );
for (var x in Date) { for (var x in Date) {
if (x === "prototype") { assert.notSameValue(x, "prototype", 'The value of x is not "prototype"');
throw new Test262Error('#2: The Date.prototype has the attribute DontEnum');
}
} }

View File

@ -6,7 +6,8 @@ info: The Date.prototype has the property "constructor"
esid: sec-properties-of-the-date-prototype-object esid: sec-properties-of-the-date-prototype-object
description: The Date.prototype has the property "constructor" description: The Date.prototype has the property "constructor"
---*/ ---*/
assert.sameValue(
if (Date.prototype.hasOwnProperty("constructor") !== true) { Date.prototype.hasOwnProperty("constructor"),
throw new Test262Error('#1: The Date.prototype has the property "constructor"'); true,
} 'Date.prototype.hasOwnProperty("constructor") must return true'
);

View File

@ -6,7 +6,8 @@ info: The Date.prototype has the property "toString"
esid: sec-properties-of-the-date-prototype-object esid: sec-properties-of-the-date-prototype-object
description: The Date.prototype has the property "toString" description: The Date.prototype has the property "toString"
---*/ ---*/
assert.sameValue(
if (Date.prototype.hasOwnProperty("toString") !== true) { Date.prototype.hasOwnProperty("toString"),
throw new Test262Error('#1: The Date.prototype has the property "toString"'); true,
} 'Date.prototype.hasOwnProperty("toString") must return true'
);

View File

@ -6,7 +6,8 @@ info: The Date.prototype has the property "toDateString"
esid: sec-properties-of-the-date-prototype-object esid: sec-properties-of-the-date-prototype-object
description: The Date.prototype has the property "toDateString" description: The Date.prototype has the property "toDateString"
---*/ ---*/
assert.sameValue(
if (Date.prototype.hasOwnProperty("toDateString") !== true) { Date.prototype.hasOwnProperty("toDateString"),
throw new Test262Error('#1: The Date.prototype has the property "toDateString"'); true,
} 'Date.prototype.hasOwnProperty("toDateString") must return true'
);

View File

@ -6,7 +6,8 @@ info: The Date.prototype has the property "toTimeString"
esid: sec-properties-of-the-date-prototype-object esid: sec-properties-of-the-date-prototype-object
description: The Date.prototype has the property "toTimeString" description: The Date.prototype has the property "toTimeString"
---*/ ---*/
assert.sameValue(
if (Date.prototype.hasOwnProperty("toTimeString") !== true) { Date.prototype.hasOwnProperty("toTimeString"),
throw new Test262Error('#1: The Date.prototype has the property "toTimeString"'); true,
} 'Date.prototype.hasOwnProperty("toTimeString") must return true'
);

View File

@ -6,7 +6,8 @@ info: The Date.prototype has the property "toLocaleString"
esid: sec-properties-of-the-date-prototype-object esid: sec-properties-of-the-date-prototype-object
description: The Date.prototype has the property "toLocaleString" description: The Date.prototype has the property "toLocaleString"
---*/ ---*/
assert.sameValue(
if (Date.prototype.hasOwnProperty("toLocaleString") !== true) { Date.prototype.hasOwnProperty("toLocaleString"),
throw new Test262Error('#1: The Date.prototype has the property "toLocaleString"'); true,
} 'Date.prototype.hasOwnProperty("toLocaleString") must return true'
);

View File

@ -6,7 +6,8 @@ info: The Date.prototype has the property "toLocaleDateString"
esid: sec-properties-of-the-date-prototype-object esid: sec-properties-of-the-date-prototype-object
description: The Date.prototype has the property "toLocaleDateString" description: The Date.prototype has the property "toLocaleDateString"
---*/ ---*/
assert.sameValue(
if (Date.prototype.hasOwnProperty("toLocaleDateString") !== true) { Date.prototype.hasOwnProperty("toLocaleDateString"),
throw new Test262Error('#1: The Date.prototype has the property "toLocaleDateString"'); true,
} 'Date.prototype.hasOwnProperty("toLocaleDateString") must return true'
);

View File

@ -6,7 +6,8 @@ info: The Date.prototype has the property "toLocaleTimeString"
esid: sec-properties-of-the-date-prototype-object esid: sec-properties-of-the-date-prototype-object
description: The Date.prototype has the property "toLocaleTimeString" description: The Date.prototype has the property "toLocaleTimeString"
---*/ ---*/
assert.sameValue(
if (Date.prototype.hasOwnProperty("toLocaleTimeString") !== true) { Date.prototype.hasOwnProperty("toLocaleTimeString"),
throw new Test262Error('#1: The Date.prototype has the property "toLocaleTimeString"'); true,
} 'Date.prototype.hasOwnProperty("toLocaleTimeString") must return true'
);

View File

@ -6,7 +6,8 @@ info: The Date.prototype has the property "valueOf"
esid: sec-properties-of-the-date-prototype-object esid: sec-properties-of-the-date-prototype-object
description: The Date.prototype has the property "valueOf" description: The Date.prototype has the property "valueOf"
---*/ ---*/
assert.sameValue(
if (Date.prototype.hasOwnProperty("valueOf") !== true) { Date.prototype.hasOwnProperty("valueOf"),
throw new Test262Error('#1: The Date.prototype has the property "valueOf"'); true,
} 'Date.prototype.hasOwnProperty("valueOf") must return true'
);

View File

@ -6,7 +6,8 @@ info: The Date.prototype has the property "getTime"
esid: sec-properties-of-the-date-prototype-object esid: sec-properties-of-the-date-prototype-object
description: The Date.prototype has the property "getTime" description: The Date.prototype has the property "getTime"
---*/ ---*/
assert.sameValue(
if (Date.prototype.hasOwnProperty("getTime") !== true) { Date.prototype.hasOwnProperty("getTime"),
throw new Test262Error('#1: The Date.prototype has the property "getTime"'); true,
} 'Date.prototype.hasOwnProperty("getTime") must return true'
);

View File

@ -6,7 +6,8 @@ info: The Date.prototype has the property "getFullYear"
esid: sec-properties-of-the-date-prototype-object esid: sec-properties-of-the-date-prototype-object
description: The Date.prototype has the property "getFullYear" description: The Date.prototype has the property "getFullYear"
---*/ ---*/
assert.sameValue(
if (Date.prototype.hasOwnProperty("getFullYear") !== true) { Date.prototype.hasOwnProperty("getFullYear"),
throw new Test262Error('#1: The Date.prototype has the property "getFullYear"'); true,
} 'Date.prototype.hasOwnProperty("getFullYear") must return true'
);

View File

@ -6,7 +6,8 @@ info: The Date.prototype has the property "getUTCFullYear"
esid: sec-properties-of-the-date-prototype-object esid: sec-properties-of-the-date-prototype-object
description: The Date.prototype has the property "getUTCFullYear" description: The Date.prototype has the property "getUTCFullYear"
---*/ ---*/
assert.sameValue(
if (Date.prototype.hasOwnProperty("getUTCFullYear") !== true) { Date.prototype.hasOwnProperty("getUTCFullYear"),
throw new Test262Error('#1: The Date.prototype has the property "getUTCFullYear"'); true,
} 'Date.prototype.hasOwnProperty("getUTCFullYear") must return true'
);

View File

@ -6,7 +6,8 @@ info: The Date.prototype has the property "getMonth"
esid: sec-properties-of-the-date-prototype-object esid: sec-properties-of-the-date-prototype-object
description: The Date.prototype has the property "getMonth" description: The Date.prototype has the property "getMonth"
---*/ ---*/
assert.sameValue(
if (Date.prototype.hasOwnProperty("getMonth") !== true) { Date.prototype.hasOwnProperty("getMonth"),
throw new Test262Error('#1: The Date.prototype has the property "getMonth"'); true,
} 'Date.prototype.hasOwnProperty("getMonth") must return true'
);

View File

@ -6,7 +6,8 @@ info: The Date.prototype has the property "getUTCMonth"
esid: sec-properties-of-the-date-prototype-object esid: sec-properties-of-the-date-prototype-object
description: The Date.prototype has the property "getUTCMonth" description: The Date.prototype has the property "getUTCMonth"
---*/ ---*/
assert.sameValue(
if (Date.prototype.hasOwnProperty("getUTCMonth") !== true) { Date.prototype.hasOwnProperty("getUTCMonth"),
throw new Test262Error('#1: The Date.prototype has the property "getUTCMonth"'); true,
} 'Date.prototype.hasOwnProperty("getUTCMonth") must return true'
);

View File

@ -6,7 +6,8 @@ info: The Date.prototype has the property "getDate"
esid: sec-properties-of-the-date-prototype-object esid: sec-properties-of-the-date-prototype-object
description: The Date.prototype has the property "getDate" description: The Date.prototype has the property "getDate"
---*/ ---*/
assert.sameValue(
if (Date.prototype.hasOwnProperty("getDate") !== true) { Date.prototype.hasOwnProperty("getDate"),
throw new Test262Error('#1: The Date.prototype has the property "getDate"'); true,
} 'Date.prototype.hasOwnProperty("getDate") must return true'
);

View File

@ -6,7 +6,8 @@ info: The Date.prototype has the property "getUTCDate"
esid: sec-properties-of-the-date-prototype-object esid: sec-properties-of-the-date-prototype-object
description: The Date.prototype has the property "getUTCDate" description: The Date.prototype has the property "getUTCDate"
---*/ ---*/
assert.sameValue(
if (Date.prototype.hasOwnProperty("getUTCDate") !== true) { Date.prototype.hasOwnProperty("getUTCDate"),
throw new Test262Error('#1: The Date.prototype has the property "getUTCDate"'); true,
} 'Date.prototype.hasOwnProperty("getUTCDate") must return true'
);

View File

@ -6,7 +6,8 @@ info: The Date.prototype has the property "getDay"
esid: sec-properties-of-the-date-prototype-object esid: sec-properties-of-the-date-prototype-object
description: The Date.prototype has the property "getDay" description: The Date.prototype has the property "getDay"
---*/ ---*/
assert.sameValue(
if (Date.prototype.hasOwnProperty("getDay") !== true) { Date.prototype.hasOwnProperty("getDay"),
throw new Test262Error('#1: The Date.prototype has the property "getDay"'); true,
} 'Date.prototype.hasOwnProperty("getDay") must return true'
);

View File

@ -6,7 +6,8 @@ info: The Date.prototype has the property "getUTCDay"
esid: sec-properties-of-the-date-prototype-object esid: sec-properties-of-the-date-prototype-object
description: The Date.prototype has the property "getUTCDay" description: The Date.prototype has the property "getUTCDay"
---*/ ---*/
assert.sameValue(
if (Date.prototype.hasOwnProperty("getUTCDay") !== true) { Date.prototype.hasOwnProperty("getUTCDay"),
throw new Test262Error('#1: The Date.prototype has the property "getUTCDay"'); true,
} 'Date.prototype.hasOwnProperty("getUTCDay") must return true'
);

View File

@ -6,7 +6,8 @@ info: The Date.prototype has the property "getHours"
esid: sec-properties-of-the-date-prototype-object esid: sec-properties-of-the-date-prototype-object
description: The Date.prototype has the property "getHours" description: The Date.prototype has the property "getHours"
---*/ ---*/
assert.sameValue(
if (Date.prototype.hasOwnProperty("getHours") !== true) { Date.prototype.hasOwnProperty("getHours"),
throw new Test262Error('#1: The Date.prototype has the property "getHours"'); true,
} 'Date.prototype.hasOwnProperty("getHours") must return true'
);

View File

@ -6,7 +6,8 @@ info: The Date.prototype has the property "getUTCHours"
esid: sec-properties-of-the-date-prototype-object esid: sec-properties-of-the-date-prototype-object
description: The Date.prototype has the property "getUTCHours" description: The Date.prototype has the property "getUTCHours"
---*/ ---*/
assert.sameValue(
if (Date.prototype.hasOwnProperty("getUTCHours") !== true) { Date.prototype.hasOwnProperty("getUTCHours"),
throw new Test262Error('#1: The Date.prototype has the property "getUTCHours"'); true,
} 'Date.prototype.hasOwnProperty("getUTCHours") must return true'
);

View File

@ -6,7 +6,8 @@ info: The Date.prototype has the property "getMinutes"
esid: sec-properties-of-the-date-prototype-object esid: sec-properties-of-the-date-prototype-object
description: The Date.prototype has the property "getMinutes" description: The Date.prototype has the property "getMinutes"
---*/ ---*/
assert.sameValue(
if (Date.prototype.hasOwnProperty("getMinutes") !== true) { Date.prototype.hasOwnProperty("getMinutes"),
throw new Test262Error('#1: The Date.prototype has the property "getMinutes"'); true,
} 'Date.prototype.hasOwnProperty("getMinutes") must return true'
);

View File

@ -6,7 +6,8 @@ info: The Date.prototype has the property "getUTCMinutes"
esid: sec-properties-of-the-date-prototype-object esid: sec-properties-of-the-date-prototype-object
description: The Date.prototype has the property "getUTCMinutes" description: The Date.prototype has the property "getUTCMinutes"
---*/ ---*/
assert.sameValue(
if (Date.prototype.hasOwnProperty("getUTCMinutes") !== true) { Date.prototype.hasOwnProperty("getUTCMinutes"),
throw new Test262Error('#1: The Date.prototype has the property "getUTCMinutes"'); true,
} 'Date.prototype.hasOwnProperty("getUTCMinutes") must return true'
);

View File

@ -6,7 +6,8 @@ info: The Date.prototype has the property "getSeconds"
esid: sec-properties-of-the-date-prototype-object esid: sec-properties-of-the-date-prototype-object
description: The Date.prototype has the property "getSeconds" description: The Date.prototype has the property "getSeconds"
---*/ ---*/
assert.sameValue(
if (Date.prototype.hasOwnProperty("getSeconds") !== true) { Date.prototype.hasOwnProperty("getSeconds"),
throw new Test262Error('#1: The Date.prototype has the property "getSeconds"'); true,
} 'Date.prototype.hasOwnProperty("getSeconds") must return true'
);

View File

@ -6,7 +6,8 @@ info: The Date.prototype has the property "getUTCSeconds"
esid: sec-properties-of-the-date-prototype-object esid: sec-properties-of-the-date-prototype-object
description: The Date.prototype has the property "getUTCSeconds" description: The Date.prototype has the property "getUTCSeconds"
---*/ ---*/
assert.sameValue(
if (Date.prototype.hasOwnProperty("getUTCSeconds") !== true) { Date.prototype.hasOwnProperty("getUTCSeconds"),
throw new Test262Error('#1: The Date.prototype has the property "getUTCSeconds"'); true,
} 'Date.prototype.hasOwnProperty("getUTCSeconds") must return true'
);

View File

@ -6,7 +6,8 @@ info: The Date.prototype has the property "getMilliseconds"
esid: sec-properties-of-the-date-prototype-object esid: sec-properties-of-the-date-prototype-object
description: The Date.prototype has the property "getMilliseconds" description: The Date.prototype has the property "getMilliseconds"
---*/ ---*/
assert.sameValue(
if (Date.prototype.hasOwnProperty("getMilliseconds") !== true) { Date.prototype.hasOwnProperty("getMilliseconds"),
throw new Test262Error('#1: The Date.prototype has the property "getMilliseconds"'); true,
} 'Date.prototype.hasOwnProperty("getMilliseconds") must return true'
);

View File

@ -6,7 +6,8 @@ info: The Date.prototype has the property "getUTCMilliseconds"
esid: sec-properties-of-the-date-prototype-object esid: sec-properties-of-the-date-prototype-object
description: The Date.prototype has the property "getUTCMilliseconds" description: The Date.prototype has the property "getUTCMilliseconds"
---*/ ---*/
assert.sameValue(
if (Date.prototype.hasOwnProperty("getUTCMilliseconds") !== true) { Date.prototype.hasOwnProperty("getUTCMilliseconds"),
throw new Test262Error('#1: The Date.prototype has the property "getUTCMilliseconds"'); true,
} 'Date.prototype.hasOwnProperty("getUTCMilliseconds") must return true'
);

View File

@ -6,7 +6,8 @@ info: The Date.prototype has the property "getTimezoneOffset"
esid: sec-properties-of-the-date-prototype-object esid: sec-properties-of-the-date-prototype-object
description: The Date.prototype has the property "getTimezoneOffset" description: The Date.prototype has the property "getTimezoneOffset"
---*/ ---*/
assert.sameValue(
if (Date.prototype.hasOwnProperty("getTimezoneOffset") !== true) { Date.prototype.hasOwnProperty("getTimezoneOffset"),
throw new Test262Error('#1: The Date.prototype has the property "getTimezoneOffset"'); true,
} 'Date.prototype.hasOwnProperty("getTimezoneOffset") must return true'
);

View File

@ -6,7 +6,8 @@ info: The Date.prototype has the property "setTime"
esid: sec-properties-of-the-date-prototype-object esid: sec-properties-of-the-date-prototype-object
description: The Date.prototype has the property "setTime" description: The Date.prototype has the property "setTime"
---*/ ---*/
assert.sameValue(
if (Date.prototype.hasOwnProperty("setTime") !== true) { Date.prototype.hasOwnProperty("setTime"),
throw new Test262Error('#1: The Date.prototype has the property "setTime"'); true,
} 'Date.prototype.hasOwnProperty("setTime") must return true'
);

View File

@ -6,7 +6,8 @@ info: The Date.prototype has the property "setMilliseconds"
esid: sec-properties-of-the-date-prototype-object esid: sec-properties-of-the-date-prototype-object
description: The Date.prototype has the property "setMilliseconds" description: The Date.prototype has the property "setMilliseconds"
---*/ ---*/
assert.sameValue(
if (Date.prototype.hasOwnProperty("setMilliseconds") !== true) { Date.prototype.hasOwnProperty("setMilliseconds"),
throw new Test262Error('#1: The Date.prototype has the property "setMilliseconds"'); true,
} 'Date.prototype.hasOwnProperty("setMilliseconds") must return true'
);

View File

@ -6,7 +6,8 @@ info: The Date.prototype has the property "setUTCMilliseconds"
esid: sec-properties-of-the-date-prototype-object esid: sec-properties-of-the-date-prototype-object
description: The Date.prototype has the property "setUTCMilliseconds" description: The Date.prototype has the property "setUTCMilliseconds"
---*/ ---*/
assert.sameValue(
if (Date.prototype.hasOwnProperty("setUTCMilliseconds") !== true) { Date.prototype.hasOwnProperty("setUTCMilliseconds"),
throw new Test262Error('#1: The Date.prototype has the property "setUTCMilliseconds"'); true,
} 'Date.prototype.hasOwnProperty("setUTCMilliseconds") must return true'
);

View File

@ -6,7 +6,8 @@ info: The Date.prototype has the property "setSeconds"
esid: sec-properties-of-the-date-prototype-object esid: sec-properties-of-the-date-prototype-object
description: The Date.prototype has the property "setSeconds" description: The Date.prototype has the property "setSeconds"
---*/ ---*/
assert.sameValue(
if (Date.prototype.hasOwnProperty("setSeconds") !== true) { Date.prototype.hasOwnProperty("setSeconds"),
throw new Test262Error('#1: The Date.prototype has the property "setSeconds"'); true,
} 'Date.prototype.hasOwnProperty("setSeconds") must return true'
);

View File

@ -6,7 +6,8 @@ info: The Date.prototype has the property "setUTCSeconds"
esid: sec-properties-of-the-date-prototype-object esid: sec-properties-of-the-date-prototype-object
description: The Date.prototype has the property "setUTCSeconds" description: The Date.prototype has the property "setUTCSeconds"
---*/ ---*/
assert.sameValue(
if (Date.prototype.hasOwnProperty("setUTCSeconds") !== true) { Date.prototype.hasOwnProperty("setUTCSeconds"),
throw new Test262Error('#1: The Date.prototype has the property "setUTCSeconds"'); true,
} 'Date.prototype.hasOwnProperty("setUTCSeconds") must return true'
);

View File

@ -6,7 +6,8 @@ info: The Date.prototype has the property "setMinutes"
esid: sec-properties-of-the-date-prototype-object esid: sec-properties-of-the-date-prototype-object
description: The Date.prototype has the property "setMinutes" description: The Date.prototype has the property "setMinutes"
---*/ ---*/
assert.sameValue(
if (Date.prototype.hasOwnProperty("setMinutes") !== true) { Date.prototype.hasOwnProperty("setMinutes"),
throw new Test262Error('#1: The Date.prototype has the property "setMinutes"'); true,
} 'Date.prototype.hasOwnProperty("setMinutes") must return true'
);

View File

@ -6,7 +6,8 @@ info: The Date.prototype has the property "setUTCMinutes"
esid: sec-properties-of-the-date-prototype-object esid: sec-properties-of-the-date-prototype-object
description: The Date.prototype has the property "setUTCMinutes" description: The Date.prototype has the property "setUTCMinutes"
---*/ ---*/
assert.sameValue(
if (Date.prototype.hasOwnProperty("setUTCMinutes") !== true) { Date.prototype.hasOwnProperty("setUTCMinutes"),
throw new Test262Error('#1: The Date.prototype has the property "setUTCMinutes"'); true,
} 'Date.prototype.hasOwnProperty("setUTCMinutes") must return true'
);

View File

@ -6,7 +6,8 @@ info: The Date.prototype has the property "setHours"
esid: sec-properties-of-the-date-prototype-object esid: sec-properties-of-the-date-prototype-object
description: The Date.prototype has the property "setHours" description: The Date.prototype has the property "setHours"
---*/ ---*/
assert.sameValue(
if (Date.prototype.hasOwnProperty("setHours") !== true) { Date.prototype.hasOwnProperty("setHours"),
throw new Test262Error('#1: The Date.prototype has the property "setHours"'); true,
} 'Date.prototype.hasOwnProperty("setHours") must return true'
);

View File

@ -6,7 +6,8 @@ info: The Date.prototype has the property "setUTCHours"
esid: sec-properties-of-the-date-prototype-object esid: sec-properties-of-the-date-prototype-object
description: The Date.prototype has the property "setUTCHours" description: The Date.prototype has the property "setUTCHours"
---*/ ---*/
assert.sameValue(
if (Date.prototype.hasOwnProperty("setUTCHours") !== true) { Date.prototype.hasOwnProperty("setUTCHours"),
throw new Test262Error('#1: The Date.prototype has the property "setUTCHours"'); true,
} 'Date.prototype.hasOwnProperty("setUTCHours") must return true'
);

Some files were not shown because too many files have changed in this diff Show More