1
0
mirror of https://github.com/tc39/test262.git synced 2025-04-08 19:35:28 +02:00

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
test/built-ins
DataView/prototype
Date
S15.9.2.1_A1.jsS15.9.2.1_A2.jsS15.9.3.1_A1_T1.jsS15.9.3.1_A1_T2.jsS15.9.3.1_A1_T3.jsS15.9.3.1_A1_T4.jsS15.9.3.1_A1_T5.jsS15.9.3.1_A1_T6.jsS15.9.3.1_A2_T1.jsS15.9.3.1_A2_T2.jsS15.9.3.1_A2_T3.jsS15.9.3.1_A2_T4.jsS15.9.3.1_A2_T5.jsS15.9.3.1_A2_T6.jsS15.9.3.1_A3_T1.1.jsS15.9.3.1_A3_T1.2.jsS15.9.3.1_A3_T2.1.jsS15.9.3.1_A3_T2.2.jsS15.9.3.1_A3_T3.1.jsS15.9.3.1_A3_T3.2.jsS15.9.3.1_A3_T4.1.jsS15.9.3.1_A3_T4.2.jsS15.9.3.1_A3_T5.1.jsS15.9.3.1_A3_T5.2.jsS15.9.3.1_A3_T6.1.jsS15.9.3.1_A3_T6.2.jsS15.9.3.1_A4_T0.jsS15.9.3.1_A4_T1.jsS15.9.3.1_A4_T2.jsS15.9.3.1_A4_T3.jsS15.9.3.1_A4_T4.jsS15.9.3.1_A4_T5.jsS15.9.3.1_A4_T6.jsS15.9.3.1_A6_T1.jsS15.9.3.1_A6_T2.jsS15.9.3.1_A6_T3.jsS15.9.3.1_A6_T4.jsS15.9.3.1_A6_T5.jsS15.9.3.2_A1_T1.jsS15.9.3.2_A2_T1.jsS15.9.3.2_A3_T1.1.jsS15.9.3.2_A3_T1.2.jsS15.9.4_A1.jsS15.9.4_A2.jsS15.9.4_A3.jsS15.9.4_A4.jsS15.9.4_A5.js
UTC
parse
prototype

@ -14,7 +14,11 @@ includes: [propertyHelper.js]
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);
verifyNotWritable(DataView.prototype, Symbol.toStringTag);

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

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

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

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

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

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

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

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

@ -11,181 +11,229 @@ description: 2 arguments, (year, month)
---*/
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);
if (!Date.prototype.isPrototypeOf(x12)) {
throw new Test262Error('#1.2: Date.prototype.isPrototypeOf(x12)');
}
assert(Date.prototype.isPrototypeOf(x12), 'Date.prototype.isPrototypeOf(x12) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x22)) {
throw new Test262Error('#2.2: Date.prototype.isPrototypeOf(x22)');
}
assert(Date.prototype.isPrototypeOf(x22), 'Date.prototype.isPrototypeOf(x22) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x32)) {
throw new Test262Error('#3.2: Date.prototype.isPrototypeOf(x32)');
}
assert(Date.prototype.isPrototypeOf(x32), 'Date.prototype.isPrototypeOf(x32) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x42)) {
throw new Test262Error('#4.2: Date.prototype.isPrototypeOf(x42)');
}
assert(Date.prototype.isPrototypeOf(x42), 'Date.prototype.isPrototypeOf(x42) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x52)) {
throw new Test262Error('#5.2: Date.prototype.isPrototypeOf(x52)');
}
assert(Date.prototype.isPrototypeOf(x52), 'Date.prototype.isPrototypeOf(x52) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x62)) {
throw new Test262Error('#6.2: Date.prototype.isPrototypeOf(x62)');
}
assert(Date.prototype.isPrototypeOf(x62), 'Date.prototype.isPrototypeOf(x62) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x72)) {
throw new Test262Error('#7.2: Date.prototype.isPrototypeOf(x72)');
}
assert(Date.prototype.isPrototypeOf(x72), 'Date.prototype.isPrototypeOf(x72) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x82)) {
throw new Test262Error('#8.2: Date.prototype.isPrototypeOf(x82)');
}
assert(Date.prototype.isPrototypeOf(x82), 'Date.prototype.isPrototypeOf(x82) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x92)) {
throw new Test262Error('#9.2: Date.prototype.isPrototypeOf(x92)');
}
assert(Date.prototype.isPrototypeOf(x92), 'Date.prototype.isPrototypeOf(x92) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x102)) {
throw new Test262Error('#10.2: Date.prototype.isPrototypeOf(x102)');
}
assert(Date.prototype.isPrototypeOf(x102), 'Date.prototype.isPrototypeOf(x102) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x112)) {
throw new Test262Error('#11.2: Date.prototype.isPrototypeOf(x112)');
}
assert(Date.prototype.isPrototypeOf(x112), 'Date.prototype.isPrototypeOf(x112) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x122)) {
throw new Test262Error('#12.2: Date.prototype.isPrototypeOf(x122)');
}
assert(Date.prototype.isPrototypeOf(x122), 'Date.prototype.isPrototypeOf(x122) must return true');
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'
);

@ -11,181 +11,229 @@ description: 3 arguments, (year, month, date)
---*/
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);
if (!Date.prototype.isPrototypeOf(x12)) {
throw new Test262Error('#1.2: Date.prototype.isPrototypeOf(x12)');
}
assert(Date.prototype.isPrototypeOf(x12), 'Date.prototype.isPrototypeOf(x12) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x22)) {
throw new Test262Error('#2.2: Date.prototype.isPrototypeOf(x22)');
}
assert(Date.prototype.isPrototypeOf(x22), 'Date.prototype.isPrototypeOf(x22) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x32)) {
throw new Test262Error('#3.2: Date.prototype.isPrototypeOf(x32)');
}
assert(Date.prototype.isPrototypeOf(x32), 'Date.prototype.isPrototypeOf(x32) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x42)) {
throw new Test262Error('#4.2: Date.prototype.isPrototypeOf(x42)');
}
assert(Date.prototype.isPrototypeOf(x42), 'Date.prototype.isPrototypeOf(x42) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x52)) {
throw new Test262Error('#5.2: Date.prototype.isPrototypeOf(x52)');
}
assert(Date.prototype.isPrototypeOf(x52), 'Date.prototype.isPrototypeOf(x52) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x62)) {
throw new Test262Error('#6.2: Date.prototype.isPrototypeOf(x62)');
}
assert(Date.prototype.isPrototypeOf(x62), 'Date.prototype.isPrototypeOf(x62) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x72)) {
throw new Test262Error('#7.2: Date.prototype.isPrototypeOf(x72)');
}
assert(Date.prototype.isPrototypeOf(x72), 'Date.prototype.isPrototypeOf(x72) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x82)) {
throw new Test262Error('#8.2: Date.prototype.isPrototypeOf(x82)');
}
assert(Date.prototype.isPrototypeOf(x82), 'Date.prototype.isPrototypeOf(x82) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x92)) {
throw new Test262Error('#9.2: Date.prototype.isPrototypeOf(x92)');
}
assert(Date.prototype.isPrototypeOf(x92), 'Date.prototype.isPrototypeOf(x92) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x102)) {
throw new Test262Error('#10.2: Date.prototype.isPrototypeOf(x102)');
}
assert(Date.prototype.isPrototypeOf(x102), 'Date.prototype.isPrototypeOf(x102) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x112)) {
throw new Test262Error('#11.2: Date.prototype.isPrototypeOf(x112)');
}
assert(Date.prototype.isPrototypeOf(x112), 'Date.prototype.isPrototypeOf(x112) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x122)) {
throw new Test262Error('#12.2: Date.prototype.isPrototypeOf(x122)');
}
assert(Date.prototype.isPrototypeOf(x122), 'Date.prototype.isPrototypeOf(x122) must return true');
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'
);

@ -11,181 +11,229 @@ description: 4 arguments, (year, month, date, hours)
---*/
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);
if (!Date.prototype.isPrototypeOf(x12)) {
throw new Test262Error('#1.2: Date.prototype.isPrototypeOf(x12)');
}
assert(Date.prototype.isPrototypeOf(x12), 'Date.prototype.isPrototypeOf(x12) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x22)) {
throw new Test262Error('#2.2: Date.prototype.isPrototypeOf(x22)');
}
assert(Date.prototype.isPrototypeOf(x22), 'Date.prototype.isPrototypeOf(x22) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x32)) {
throw new Test262Error('#3.2: Date.prototype.isPrototypeOf(x32)');
}
assert(Date.prototype.isPrototypeOf(x32), 'Date.prototype.isPrototypeOf(x32) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x42)) {
throw new Test262Error('#4.2: Date.prototype.isPrototypeOf(x42)');
}
assert(Date.prototype.isPrototypeOf(x42), 'Date.prototype.isPrototypeOf(x42) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x52)) {
throw new Test262Error('#5.2: Date.prototype.isPrototypeOf(x52)');
}
assert(Date.prototype.isPrototypeOf(x52), 'Date.prototype.isPrototypeOf(x52) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x62)) {
throw new Test262Error('#6.2: Date.prototype.isPrototypeOf(x62)');
}
assert(Date.prototype.isPrototypeOf(x62), 'Date.prototype.isPrototypeOf(x62) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x72)) {
throw new Test262Error('#7.2: Date.prototype.isPrototypeOf(x72)');
}
assert(Date.prototype.isPrototypeOf(x72), 'Date.prototype.isPrototypeOf(x72) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x82)) {
throw new Test262Error('#8.2: Date.prototype.isPrototypeOf(x82)');
}
assert(Date.prototype.isPrototypeOf(x82), 'Date.prototype.isPrototypeOf(x82) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x92)) {
throw new Test262Error('#9.2: Date.prototype.isPrototypeOf(x92)');
}
assert(Date.prototype.isPrototypeOf(x92), 'Date.prototype.isPrototypeOf(x92) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x102)) {
throw new Test262Error('#10.2: Date.prototype.isPrototypeOf(x102)');
}
assert(Date.prototype.isPrototypeOf(x102), 'Date.prototype.isPrototypeOf(x102) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x112)) {
throw new Test262Error('#11.2: Date.prototype.isPrototypeOf(x112)');
}
assert(Date.prototype.isPrototypeOf(x112), 'Date.prototype.isPrototypeOf(x112) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x122)) {
throw new Test262Error('#12.2: Date.prototype.isPrototypeOf(x122)');
}
assert(Date.prototype.isPrototypeOf(x122), 'Date.prototype.isPrototypeOf(x122) must return true');
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'
);

@ -11,181 +11,229 @@ description: 5 arguments, (year, month, date, hours, minutes)
---*/
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);
if (!Date.prototype.isPrototypeOf(x12)) {
throw new Test262Error('#1.2: Date.prototype.isPrototypeOf(x12)');
}
assert(Date.prototype.isPrototypeOf(x12), 'Date.prototype.isPrototypeOf(x12) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x22)) {
throw new Test262Error('#2.2: Date.prototype.isPrototypeOf(x22)');
}
assert(Date.prototype.isPrototypeOf(x22), 'Date.prototype.isPrototypeOf(x22) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x32)) {
throw new Test262Error('#3.2: Date.prototype.isPrototypeOf(x32)');
}
assert(Date.prototype.isPrototypeOf(x32), 'Date.prototype.isPrototypeOf(x32) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x42)) {
throw new Test262Error('#4.2: Date.prototype.isPrototypeOf(x42)');
}
assert(Date.prototype.isPrototypeOf(x42), 'Date.prototype.isPrototypeOf(x42) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x52)) {
throw new Test262Error('#5.2: Date.prototype.isPrototypeOf(x52)');
}
assert(Date.prototype.isPrototypeOf(x52), 'Date.prototype.isPrototypeOf(x52) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x62)) {
throw new Test262Error('#6.2: Date.prototype.isPrototypeOf(x62)');
}
assert(Date.prototype.isPrototypeOf(x62), 'Date.prototype.isPrototypeOf(x62) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x72)) {
throw new Test262Error('#7.2: Date.prototype.isPrototypeOf(x72)');
}
assert(Date.prototype.isPrototypeOf(x72), 'Date.prototype.isPrototypeOf(x72) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x82)) {
throw new Test262Error('#8.2: Date.prototype.isPrototypeOf(x82)');
}
assert(Date.prototype.isPrototypeOf(x82), 'Date.prototype.isPrototypeOf(x82) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x92)) {
throw new Test262Error('#9.2: Date.prototype.isPrototypeOf(x92)');
}
assert(Date.prototype.isPrototypeOf(x92), 'Date.prototype.isPrototypeOf(x92) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x102)) {
throw new Test262Error('#10.2: Date.prototype.isPrototypeOf(x102)');
}
assert(Date.prototype.isPrototypeOf(x102), 'Date.prototype.isPrototypeOf(x102) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x112)) {
throw new Test262Error('#11.2: Date.prototype.isPrototypeOf(x112)');
}
assert(Date.prototype.isPrototypeOf(x112), 'Date.prototype.isPrototypeOf(x112) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x122)) {
throw new Test262Error('#12.2: Date.prototype.isPrototypeOf(x122)');
}
assert(Date.prototype.isPrototypeOf(x122), 'Date.prototype.isPrototypeOf(x122) must return true');
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'
);

@ -11,181 +11,229 @@ description: 6 arguments, (year, month, date, hours, minutes, seconds)
---*/
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);
if (!Date.prototype.isPrototypeOf(x12)) {
throw new Test262Error('#1.2: Date.prototype.isPrototypeOf(x12)');
}
assert(Date.prototype.isPrototypeOf(x12), 'Date.prototype.isPrototypeOf(x12) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x22)) {
throw new Test262Error('#2.2: Date.prototype.isPrototypeOf(x22)');
}
assert(Date.prototype.isPrototypeOf(x22), 'Date.prototype.isPrototypeOf(x22) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x32)) {
throw new Test262Error('#3.2: Date.prototype.isPrototypeOf(x32)');
}
assert(Date.prototype.isPrototypeOf(x32), 'Date.prototype.isPrototypeOf(x32) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x42)) {
throw new Test262Error('#4.2: Date.prototype.isPrototypeOf(x42)');
}
assert(Date.prototype.isPrototypeOf(x42), 'Date.prototype.isPrototypeOf(x42) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x52)) {
throw new Test262Error('#5.2: Date.prototype.isPrototypeOf(x52)');
}
assert(Date.prototype.isPrototypeOf(x52), 'Date.prototype.isPrototypeOf(x52) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x62)) {
throw new Test262Error('#6.2: Date.prototype.isPrototypeOf(x62)');
}
assert(Date.prototype.isPrototypeOf(x62), 'Date.prototype.isPrototypeOf(x62) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x72)) {
throw new Test262Error('#7.2: Date.prototype.isPrototypeOf(x72)');
}
assert(Date.prototype.isPrototypeOf(x72), 'Date.prototype.isPrototypeOf(x72) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x82)) {
throw new Test262Error('#8.2: Date.prototype.isPrototypeOf(x82)');
}
assert(Date.prototype.isPrototypeOf(x82), 'Date.prototype.isPrototypeOf(x82) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x92)) {
throw new Test262Error('#9.2: Date.prototype.isPrototypeOf(x92)');
}
assert(Date.prototype.isPrototypeOf(x92), 'Date.prototype.isPrototypeOf(x92) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x102)) {
throw new Test262Error('#10.2: Date.prototype.isPrototypeOf(x102)');
}
assert(Date.prototype.isPrototypeOf(x102), 'Date.prototype.isPrototypeOf(x102) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x112)) {
throw new Test262Error('#11.2: Date.prototype.isPrototypeOf(x112)');
}
assert(Date.prototype.isPrototypeOf(x112), 'Date.prototype.isPrototypeOf(x112) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x122)) {
throw new Test262Error('#12.2: Date.prototype.isPrototypeOf(x122)');
}
assert(Date.prototype.isPrototypeOf(x122), 'Date.prototype.isPrototypeOf(x122) must return true');
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'
);

@ -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);
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);
if (!Date.prototype.isPrototypeOf(x12)) {
throw new Test262Error('#1.2: Date.prototype.isPrototypeOf(x12)');
}
assert(Date.prototype.isPrototypeOf(x12), 'Date.prototype.isPrototypeOf(x12) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x22)) {
throw new Test262Error('#2.2: Date.prototype.isPrototypeOf(x22)');
}
assert(Date.prototype.isPrototypeOf(x22), 'Date.prototype.isPrototypeOf(x22) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x32)) {
throw new Test262Error('#3.2: Date.prototype.isPrototypeOf(x32)');
}
assert(Date.prototype.isPrototypeOf(x32), 'Date.prototype.isPrototypeOf(x32) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x42)) {
throw new Test262Error('#4.2: Date.prototype.isPrototypeOf(x42)');
}
assert(Date.prototype.isPrototypeOf(x42), 'Date.prototype.isPrototypeOf(x42) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x52)) {
throw new Test262Error('#5.2: Date.prototype.isPrototypeOf(x52)');
}
assert(Date.prototype.isPrototypeOf(x52), 'Date.prototype.isPrototypeOf(x52) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x62)) {
throw new Test262Error('#6.2: Date.prototype.isPrototypeOf(x62)');
}
assert(Date.prototype.isPrototypeOf(x62), 'Date.prototype.isPrototypeOf(x62) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x72)) {
throw new Test262Error('#7.2: Date.prototype.isPrototypeOf(x72)');
}
assert(Date.prototype.isPrototypeOf(x72), 'Date.prototype.isPrototypeOf(x72) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x82)) {
throw new Test262Error('#8.2: Date.prototype.isPrototypeOf(x82)');
}
assert(Date.prototype.isPrototypeOf(x82), 'Date.prototype.isPrototypeOf(x82) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x92)) {
throw new Test262Error('#9.2: Date.prototype.isPrototypeOf(x92)');
}
assert(Date.prototype.isPrototypeOf(x92), 'Date.prototype.isPrototypeOf(x92) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x102)) {
throw new Test262Error('#10.2: Date.prototype.isPrototypeOf(x102)');
}
assert(Date.prototype.isPrototypeOf(x102), 'Date.prototype.isPrototypeOf(x102) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x112)) {
throw new Test262Error('#11.2: Date.prototype.isPrototypeOf(x112)');
}
assert(Date.prototype.isPrototypeOf(x112), 'Date.prototype.isPrototypeOf(x112) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x122)) {
throw new Test262Error('#12.2: Date.prototype.isPrototypeOf(x122)');
}
assert(Date.prototype.isPrototypeOf(x122), 'Date.prototype.isPrototypeOf(x122) must return true');
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'
);

@ -12,61 +12,97 @@ description: >
---*/
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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]"'
);

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

@ -12,61 +12,97 @@ description: >
---*/
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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]"'
);

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

@ -12,61 +12,97 @@ description: >
---*/
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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]"'
);

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

@ -12,61 +12,97 @@ description: >
---*/
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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]"'
);

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

@ -10,61 +10,97 @@ description: 6 arguments, (year, month, date, hours, minutes, seconds)
---*/
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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]"'
);

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

@ -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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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]"'
);

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

@ -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');

@ -16,34 +16,18 @@ esid: sec-date-year-month-date-hours-minutes-seconds-ms
description: 2 arguments, (year, month)
---*/
var myObj = function(val) {
function PoisonedValueOf(val) {
this.value = val;
this.valueOf = function() {
throw "valueOf-" + this.value;
throw new Test262Error();
};
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)");
}
this.toString = function() {};
}
//CHECK#2
try {
var x2 = new Date(1, new myObj(2));
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)");
}
}
assert.throws(Test262Error, () => {
new Date(new PoisonedValueOf(1), new PoisonedValueOf(2));
}, '`new Date(new PoisonedValueOf(1), new PoisonedValueOf(2))` throws a Test262Error exception');
assert.throws(Test262Error, () => {
new Date(1, new PoisonedValueOf(2));
}, '`new Date(1, new PoisonedValueOf(2))` throws a Test262Error exception');

@ -16,45 +16,22 @@ esid: sec-date-year-month-date-hours-minutes-seconds-ms
description: 3 arguments, (year, month, date)
---*/
var myObj = function(val) {
function PoisonedValueOf(val) {
this.value = val;
this.valueOf = function() {
throw "valueOf-" + this.value;
throw new Test262Error();
};
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)");
}
this.toString = function() {};
}
//CHECK#2
try {
var x2 = new Date(1, new myObj(2), new myObj(3));
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)");
}
}
assert.throws(Test262Error, () => {
new Date(new PoisonedValueOf(1), new PoisonedValueOf(2), new PoisonedValueOf(3));
}, '`new Date(new PoisonedValueOf(1), new PoisonedValueOf(2), new PoisonedValueOf(3))` throws a Test262Error exception');
//CHECK#3
try {
var x3 = new Date(1, 2, new myObj(3));
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)");
}
}
assert.throws(Test262Error, () => {
new Date(1, new PoisonedValueOf(2), new PoisonedValueOf(3));
}, '`new Date(1, new PoisonedValueOf(2), new PoisonedValueOf(3))` throws a Test262Error exception');
assert.throws(Test262Error, () => {
new Date(1, 2, new PoisonedValueOf(3));
}, '`new Date(1, 2, new PoisonedValueOf(3))` throws a Test262Error exception');

@ -16,56 +16,26 @@ esid: sec-date-year-month-date-hours-minutes-seconds-ms
description: 4 arguments, (year, month, date, hours)
---*/
var myObj = function(val) {
function PoisonedValueOf(val) {
this.value = val;
this.valueOf = function() {
throw "valueOf-" + this.value;
throw new Test262Error();
};
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)");
}
this.toString = function() {};
}
//CHECK#2
try {
var x2 = new Date(1, new myObj(2), new myObj(3), new myObj(4));
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)");
}
}
assert.throws(Test262Error, () => {
new Date(new PoisonedValueOf(1), new PoisonedValueOf(2), new PoisonedValueOf(3), new PoisonedValueOf(4));
}, '`new Date(new PoisonedValueOf(1), new PoisonedValueOf(2), new PoisonedValueOf(3), new PoisonedValueOf(4))` throws a Test262Error exception');
//CHECK#3
try {
var x3 = new Date(1, 2, new myObj(3), new myObj(4));
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)");
}
}
assert.throws(Test262Error, () => {
new Date(1, new PoisonedValueOf(2), new PoisonedValueOf(3), new PoisonedValueOf(4));
}, '`new Date(1, new PoisonedValueOf(2), new PoisonedValueOf(3), new PoisonedValueOf(4))` throws a Test262Error exception');
//CHECK#4
try {
var x4 = new Date(1, 2, 3, new myObj(4));
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)");
}
}
assert.throws(Test262Error, () => {
new Date(1, 2, new PoisonedValueOf(3), new PoisonedValueOf(4));
}, '`new Date(1, 2, new PoisonedValueOf(3), new PoisonedValueOf(4))` throws a Test262Error exception');
assert.throws(Test262Error, () => {
new Date(1, 2, 3, new PoisonedValueOf(4));
}, '`new Date(1, 2, 3, new PoisonedValueOf(4))` throws a Test262Error exception');

@ -16,67 +16,30 @@ esid: sec-date-year-month-date-hours-minutes-seconds-ms
description: 5 arguments, (year, month, date, hours, minutes)
---*/
var myObj = function(val) {
function PoisonedValueOf(val) {
this.value = val;
this.valueOf = function() {
throw "valueOf-" + this.value;
throw new Test262Error();
};
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)");
}
this.toString = function() {};
}
//CHECK#2
try {
var x2 = new Date(1, new myObj(2), new myObj(3), new myObj(4), new myObj(5));
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)");
}
}
assert.throws(Test262Error, () => {
new Date(new PoisonedValueOf(1), new PoisonedValueOf(2), new PoisonedValueOf(3), new PoisonedValueOf(4), new PoisonedValueOf(5));
}, '`new Date(new PoisonedValueOf(1), new PoisonedValueOf(2), new PoisonedValueOf(3), new PoisonedValueOf(4), new PoisonedValueOf(5))` throws a Test262Error exception');
//CHECK#3
try {
var x3 = new Date(1, 2, new myObj(3), new myObj(4), new myObj(5));
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)");
}
}
assert.throws(Test262Error, () => {
new Date(1, new PoisonedValueOf(2), new PoisonedValueOf(3), new PoisonedValueOf(4), new PoisonedValueOf(5));
}, '`new Date(1, new PoisonedValueOf(2), new PoisonedValueOf(3), new PoisonedValueOf(4), new PoisonedValueOf(5))` throws a Test262Error exception');
//CHECK#4
try {
var x4 = new Date(1, 2, 3, new myObj(4), new myObj(5));
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)");
}
}
assert.throws(Test262Error, () => {
new Date(1, 2, new PoisonedValueOf(3), new PoisonedValueOf(4), new PoisonedValueOf(5));
}, '`new Date(1, 2, new PoisonedValueOf(3), new PoisonedValueOf(4), new PoisonedValueOf(5))` throws a Test262Error exception');
//CHECK#5
try {
var x5 = new Date(1, 2, 3, 4, new myObj(5));
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)");
}
}
assert.throws(Test262Error, () => {
new Date(1, 2, 3, new PoisonedValueOf(4), new PoisonedValueOf(5));
}, '`new Date(1, 2, 3, new PoisonedValueOf(4), new PoisonedValueOf(5))` throws a Test262Error exception');
assert.throws(Test262Error, () => {
new Date(1, 2, 3, 4, new PoisonedValueOf(5));
}, '`new Date(1, 2, 3, 4, new PoisonedValueOf(5))` throws a Test262Error exception');

@ -16,78 +16,34 @@ esid: sec-date-year-month-date-hours-minutes-seconds-ms
description: 6 arguments, (year, month, date, hours, minutes, seconds)
---*/
var myObj = function(val) {
function PoisonedValueOf(val) {
this.value = val;
this.valueOf = function() {
throw "valueOf-" + this.value;
throw new Test262Error();
};
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)");
}
this.toString = function() {};
}
//CHECK#2
try {
var x2 = new Date(1, new myObj(2), new myObj(3), new myObj(4), new myObj(5), new myObj(6));
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)");
}
}
assert.throws(Test262Error, () => {
new Date(new PoisonedValueOf(1), new PoisonedValueOf(2), new PoisonedValueOf(3), new PoisonedValueOf(4), new PoisonedValueOf(5), new PoisonedValueOf(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');
//CHECK#3
try {
var x3 = new Date(1, 2, new myObj(3), new myObj(4), new myObj(5), new myObj(6));
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)");
}
}
assert.throws(Test262Error, () => {
new Date(1, new PoisonedValueOf(2), new PoisonedValueOf(3), new PoisonedValueOf(4), new PoisonedValueOf(5), new PoisonedValueOf(6));
}, '`new Date(1, new PoisonedValueOf(2), new PoisonedValueOf(3), new PoisonedValueOf(4), new PoisonedValueOf(5), new PoisonedValueOf(6))` throws a Test262Error exception');
//CHECK#4
try {
var x4 = new Date(1, 2, 3, new myObj(4), new myObj(5), new myObj(6));
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)");
}
}
assert.throws(Test262Error, () => {
new Date(1, 2, new PoisonedValueOf(3), new PoisonedValueOf(4), new PoisonedValueOf(5), new PoisonedValueOf(6));
}, '`new Date(1, 2, new PoisonedValueOf(3), new PoisonedValueOf(4), new PoisonedValueOf(5), new PoisonedValueOf(6))` throws a Test262Error exception');
//CHECK#5
try {
var x5 = new Date(1, 2, 3, 4, new myObj(5), new myObj(6));
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)");
}
}
assert.throws(Test262Error, () => {
new Date(1, 2, 3, new PoisonedValueOf(4), new PoisonedValueOf(5), new PoisonedValueOf(6));
}, '`new Date(1, 2, 3, new PoisonedValueOf(4), new PoisonedValueOf(5), new PoisonedValueOf(6))` throws a Test262Error exception');
//CHECK#6
try {
var x6 = new Date(1, 2, 3, 4, 5, new myObj(6));
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)");
}
}
assert.throws(Test262Error, () => {
new Date(1, 2, 3, 4, new PoisonedValueOf(5), new PoisonedValueOf(6));
}, '`new Date(1, 2, 3, 4, new PoisonedValueOf(5), new PoisonedValueOf(6))` throws a Test262Error exception');
assert.throws(Test262Error, () => {
new Date(1, 2, 3, 4, 5, new PoisonedValueOf(6));
}, '`new Date(1, 2, 3, 4, 5, new PoisonedValueOf(6))` throws a Test262Error exception');

@ -16,89 +16,38 @@ esid: sec-date-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.valueOf = function() {
throw "valueOf-" + this.value;
throw new Test262Error();
};
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)");
}
this.toString = function() {};
}
//CHECK#2
try {
var x2 = new Date(1, new myObj(2), new myObj(3), new myObj(4), new myObj(5), new myObj(6), new myObj(7));
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)");
}
}
assert.throws(Test262Error, () => {
new Date(new PoisonedValueOf(1), new PoisonedValueOf(2), new PoisonedValueOf(3), new PoisonedValueOf(4), new PoisonedValueOf(5), new PoisonedValueOf(6), new PoisonedValueOf(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');
//CHECK#3
try {
var x3 = new Date(1, 2, new myObj(3), new myObj(4), new myObj(5), new myObj(6), new myObj(7));
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)");
}
}
assert.throws(Test262Error, () => {
new Date(1, new PoisonedValueOf(2), new PoisonedValueOf(3), new PoisonedValueOf(4), new PoisonedValueOf(5), new PoisonedValueOf(6), new PoisonedValueOf(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');
//CHECK#4
try {
var x4 = new Date(1, 2, 3, new myObj(4), new myObj(5), new myObj(6), new myObj(7));
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)");
}
}
assert.throws(Test262Error, () => {
new Date(1, 2, new PoisonedValueOf(3), new PoisonedValueOf(4), new PoisonedValueOf(5), new PoisonedValueOf(6), new PoisonedValueOf(7));
}, '`new Date(1, 2, new PoisonedValueOf(3), new PoisonedValueOf(4), new PoisonedValueOf(5), new PoisonedValueOf(6), new PoisonedValueOf(7))` throws a Test262Error exception');
//CHECK#5
try {
var x5 = new Date(1, 2, 3, 4, new myObj(5), new myObj(6), new myObj(7));
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)");
}
}
assert.throws(Test262Error, () => {
new Date(1, 2, 3, new PoisonedValueOf(4), new PoisonedValueOf(5), new PoisonedValueOf(6), new PoisonedValueOf(7));
}, '`new Date(1, 2, 3, new PoisonedValueOf(4), new PoisonedValueOf(5), new PoisonedValueOf(6), new PoisonedValueOf(7))` throws a Test262Error exception');
//CHECK#6
try {
var x6 = new Date(1, 2, 3, 4, 5, new myObj(6), new myObj(7));
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)");
}
}
assert.throws(Test262Error, () => {
new Date(1, 2, 3, 4, new PoisonedValueOf(5), new PoisonedValueOf(6), new PoisonedValueOf(7));
}, '`new Date(1, 2, 3, 4, new PoisonedValueOf(5), new PoisonedValueOf(6), new PoisonedValueOf(7))` throws a Test262Error exception');
//CHECK#7
try {
var x7 = new Date(1, 2, 3, 4, 5, 6, new myObj(7));
throw new Test262Error("#7: The 7th step is calling ToNumber(ms)");
}
catch (e) {
if (e !== "valueOf-7") {
throw new Test262Error("#7: The 7th step is calling ToNumber(ms)");
}
}
assert.throws(Test262Error, () => {
new Date(1, 2, 3, 4, 5, new PoisonedValueOf(6), new PoisonedValueOf(7));
}, '`new Date(1, 2, 3, 4, 5, new PoisonedValueOf(6), new PoisonedValueOf(7))` throws a Test262Error exception');
assert.throws(Test262Error, () => {
new Date(1, 2, 3, 4, 5, 6, new PoisonedValueOf(7));
}, '`new Date(1, 2, 3, 4, 5, 6, new PoisonedValueOf(7))` throws a Test262Error exception');

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

@ -15,37 +15,37 @@ function DateValue(year, month, date, hours, minutes, seconds, ms) {
var x;
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
assert.sameValue(x, NaN, "(2100, 0, 1)");
assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');

@ -15,37 +15,37 @@ function DateValue(year, month, date, hours, minutes, seconds, ms) {
var x;
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
assert.sameValue(x, NaN, "(2100, 0, 1, 0)");
assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');

@ -15,37 +15,37 @@ function DateValue(year, month, date, hours, minutes, seconds, ms) {
var x;
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
assert.sameValue(x, NaN, "(2100, 0, 1, 0, 0)");
assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');

@ -15,37 +15,37 @@ function DateValue(year, month, date, hours, minutes, seconds, ms) {
var x;
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
assert.sameValue(x, NaN, "(2100, 0, 1, 0, 0, 0)");
assert.sameValue(x, NaN, 'The value of x is expected to equal NaN');

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

@ -12,121 +12,153 @@ includes: [dateConstants.js]
---*/
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);
if (!Date.prototype.isPrototypeOf(x12)) {
throw new Test262Error('#1.2: Date.prototype.isPrototypeOf(x12)');
}
assert(Date.prototype.isPrototypeOf(x12), 'Date.prototype.isPrototypeOf(x12) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x22)) {
throw new Test262Error('#2.2: Date.prototype.isPrototypeOf(x22)');
}
assert(Date.prototype.isPrototypeOf(x22), 'Date.prototype.isPrototypeOf(x22) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x32)) {
throw new Test262Error('#3.2: Date.prototype.isPrototypeOf(x32)');
}
assert(Date.prototype.isPrototypeOf(x32), 'Date.prototype.isPrototypeOf(x32) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x42)) {
throw new Test262Error('#4.2: Date.prototype.isPrototypeOf(x42)');
}
assert(Date.prototype.isPrototypeOf(x42), 'Date.prototype.isPrototypeOf(x42) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x52)) {
throw new Test262Error('#5.2: Date.prototype.isPrototypeOf(x52)');
}
assert(Date.prototype.isPrototypeOf(x52), 'Date.prototype.isPrototypeOf(x52) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x62)) {
throw new Test262Error('#6.2: Date.prototype.isPrototypeOf(x62)');
}
assert(Date.prototype.isPrototypeOf(x62), 'Date.prototype.isPrototypeOf(x62) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x72)) {
throw new Test262Error('#7.2: Date.prototype.isPrototypeOf(x72)');
}
assert(Date.prototype.isPrototypeOf(x72), 'Date.prototype.isPrototypeOf(x72) must return true');
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);
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);
if (!Date.prototype.isPrototypeOf(x82)) {
throw new Test262Error('#8.2: Date.prototype.isPrototypeOf(x82)');
}
assert(Date.prototype.isPrototypeOf(x82), 'Date.prototype.isPrototypeOf(x82) must return true');
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'
);

@ -11,41 +11,65 @@ includes: [dateConstants.js]
---*/
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);
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);
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);
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);
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);
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);
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);
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]"'
);

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

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

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

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

@ -8,8 +8,4 @@ info: |
esid: sec-date-constructor
description: Checking Function.prototype.isPrototypeOf(Date)
---*/
//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.');
}
assert(Function.prototype.isPrototypeOf(Date), 'Function.prototype.isPrototypeOf(Date) must return true');

@ -6,13 +6,5 @@ info: Date constructor has length property whose value is 7
esid: sec-date-constructor
description: Checking Date.length property
---*/
//CHECK#1
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');
}
assert(Date.hasOwnProperty("length"), 'Date.hasOwnProperty("length") must return true');
assert.sameValue(Date.length, 7, 'The value of Date.length is expected to be 7');

@ -9,10 +9,9 @@ description: Checking absence of ReadOnly attribute
---*/
var x = Date.UTC;
if (x === 1)
if (x === 1) {
Date.UTC = 2;
else
} else {
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`');

@ -7,11 +7,5 @@ info: The Date property "UTC" has { DontEnum } attributes
es5id: 15.9.4.3_A1_T2
description: Checking absence of DontDelete attribute
---*/
if (delete Date.UTC === false) {
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');
}
assert.notSameValue(delete Date.UTC, false, 'The value of delete Date.UTC is not false');
assert(!Date.hasOwnProperty('UTC'), 'The value of !Date.hasOwnProperty(\'UTC\') is expected to be true');

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

@ -7,11 +7,5 @@ info: The "length" property of the "UTC" is 7
es5id: 15.9.4.3_A2_T1
description: The "length" property of the "UTC" is 7
---*/
if (Date.UTC.hasOwnProperty("length") !== true) {
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');
}
assert.sameValue(Date.UTC.hasOwnProperty("length"), true, 'Date.UTC.hasOwnProperty("length") must return true');
assert.sameValue(Date.UTC.length, 7, 'The value of Date.UTC.length is expected to be 7');

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

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

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

@ -8,10 +8,9 @@ description: Checking absence of ReadOnly attribute
---*/
var x = Date.parse;
if (x === 1)
if (x === 1) {
Date.parse = 2;
else
} else {
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`');

@ -6,11 +6,5 @@ info: The Date property "parse" has { DontEnum } attributes
esid: sec-date.parse
description: Checking absence of DontDelete attribute
---*/
if (delete Date.parse === false) {
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');
}
assert.notSameValue(delete Date.parse, false, 'The value of delete Date.parse is not false');
assert(!Date.hasOwnProperty('parse'), 'The value of !Date.hasOwnProperty(\'parse\') is expected to be true');

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

@ -6,11 +6,5 @@ info: The "length" property of the "parse" is 1
esid: sec-date.parse
description: The "length" property of the "parse" is 1
---*/
if (Date.parse.hasOwnProperty("length") !== true) {
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');
}
assert.sameValue(Date.parse.hasOwnProperty("length"), true, 'Date.parse.hasOwnProperty("length") must return true');
assert.sameValue(Date.parse.length, 1, 'The value of Date.parse.length is expected to be 1');

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

@ -8,11 +8,9 @@ info: |
esid: sec-date.parse
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) {
throw new Test262Error('#1: The Date.parse.length property does not have the attributes DontDelete');
}
if (Date.parse.hasOwnProperty('length')) {
throw new Test262Error('#2: The Date.parse.length property does not have the attributes DontDelete');
}
assert(
!Date.parse.hasOwnProperty('length'),
'The value of !Date.parse.hasOwnProperty(\'length\') is expected to be true'
);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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