mirror of https://github.com/tc39/test262.git
built-ins/Date/*: make all indentation consistent (depth & character) (#1422)
This commit is contained in:
parent
6c50d46b39
commit
b59d956b3c
|
@ -10,10 +10,10 @@ description: >
|
|||
absent
|
||||
---*/
|
||||
|
||||
var result = false;
|
||||
var expectedDateTimeStr = "1970-01-01T00:00:00.000Z";
|
||||
var dateObj = new Date("1970");
|
||||
var dateStr = dateObj.toISOString();
|
||||
result = dateStr === expectedDateTimeStr;
|
||||
var result = false;
|
||||
var expectedDateTimeStr = "1970-01-01T00:00:00.000Z";
|
||||
var dateObj = new Date("1970");
|
||||
var dateStr = dateObj.toISOString();
|
||||
result = dateStr === expectedDateTimeStr;
|
||||
|
||||
assert(result, 'result !== true');
|
||||
|
|
|
@ -11,71 +11,71 @@ description: Checking type of returned value
|
|||
---*/
|
||||
|
||||
//CHECK#1
|
||||
if( typeof Date() !== "string" ) {
|
||||
$ERROR('#1: typeof Date() should be "string", actual is '+(typeof Date()));
|
||||
if (typeof Date() !== "string") {
|
||||
$ERROR('#1: typeof Date() should be "string", actual is ' + (typeof Date()));
|
||||
}
|
||||
|
||||
//CHECK#2
|
||||
if( typeof Date(1) !== "string" ) {
|
||||
$ERROR('#2: typeof Date(1) should be "string", actual is '+(typeof Date(1)));
|
||||
if (typeof Date(1) !== "string") {
|
||||
$ERROR('#2: typeof Date(1) should be "string", actual is ' + (typeof Date(1)));
|
||||
}
|
||||
|
||||
//CHECK#3
|
||||
if( typeof Date(1970, 1) !== "string" ) {
|
||||
$ERROR('#3: typeof Date(1970, 1) should be "string", actual is '+(typeof Date(1970, 1)));
|
||||
if (typeof Date(1970, 1) !== "string") {
|
||||
$ERROR('#3: typeof Date(1970, 1) should be "string", actual is ' + (typeof Date(1970, 1)));
|
||||
}
|
||||
|
||||
//CHECK#4
|
||||
if( typeof Date(1970, 1, 1) !== "string" ) {
|
||||
$ERROR('#4: typeof Date(1970, 1, 1) should be "string", actual is '+(typeof Date(1970, 1, 1)));
|
||||
if (typeof Date(1970, 1, 1) !== "string") {
|
||||
$ERROR('#4: typeof Date(1970, 1, 1) should be "string", actual is ' + (typeof Date(1970, 1, 1)));
|
||||
}
|
||||
|
||||
//CHECK#5
|
||||
if( typeof Date(1970, 1, 1, 1) !== "string" ) {
|
||||
$ERROR('#5: typeof Date(1970, 1, 1, 1) should be "string", actual is '+(typeof Date(1970, 1, 1, 1)));
|
||||
if (typeof Date(1970, 1, 1, 1) !== "string") {
|
||||
$ERROR('#5: typeof Date(1970, 1, 1, 1) should be "string", actual is ' + (typeof Date(1970, 1, 1, 1)));
|
||||
}
|
||||
|
||||
//CHECK#6
|
||||
if( typeof Date(1970, 1, 1, 1) !== "string" ) {
|
||||
$ERROR('#7: typeof Date(1970, 1, 1, 1) should be "string", actual is '+(typeof Date(1970, 1, 1, 1)));
|
||||
if (typeof Date(1970, 1, 1, 1) !== "string") {
|
||||
$ERROR('#7: typeof Date(1970, 1, 1, 1) should be "string", actual is ' + (typeof Date(1970, 1, 1, 1)));
|
||||
}
|
||||
|
||||
//CHECK#8
|
||||
if( typeof Date(1970, 1, 1, 1, 0) !== "string" ) {
|
||||
$ERROR('#8: typeof Date(1970, 1, 1, 1, 0) should be "string", actual is '+(typeof Date(1970, 1, 1, 1, 0)));
|
||||
if (typeof Date(1970, 1, 1, 1, 0) !== "string") {
|
||||
$ERROR('#8: typeof Date(1970, 1, 1, 1, 0) should be "string", actual is ' + (typeof Date(1970, 1, 1, 1, 0)));
|
||||
}
|
||||
|
||||
//CHECK#9
|
||||
if( typeof Date(1970, 1, 1, 1, 0, 0) !== "string" ) {
|
||||
$ERROR('#9: typeof Date(1970, 1, 1, 1, 0, 0) should be "string", actual is '+(typeof Date(1970, 1, 1, 1, 0, 0)));
|
||||
if (typeof Date(1970, 1, 1, 1, 0, 0) !== "string") {
|
||||
$ERROR('#9: typeof Date(1970, 1, 1, 1, 0, 0) should be "string", actual is ' + (typeof Date(1970, 1, 1, 1, 0, 0)));
|
||||
}
|
||||
|
||||
//CHECK#10
|
||||
if( typeof Date(1970, 1, 1, 1, 0, 0, 0) !== "string" ) {
|
||||
$ERROR('#10: typeof Date(1970, 1, 1, 1, 0, 0, 0) should be "string", actual is '+(typeof Date(1970, 1, 1, 1, 0, 0, 0)));
|
||||
if (typeof Date(1970, 1, 1, 1, 0, 0, 0) !== "string") {
|
||||
$ERROR('#10: typeof Date(1970, 1, 1, 1, 0, 0, 0) should be "string", actual is ' + (typeof Date(1970, 1, 1, 1, 0, 0, 0)));
|
||||
}
|
||||
|
||||
//CHECK#11
|
||||
if( typeof Date(Number.NaN) !== "string" ) {
|
||||
$ERROR('#11: typeof Date(Number.NaN) should be "string", actual is '+(typeof Date(Number.NaN)));
|
||||
if (typeof Date(Number.NaN) !== "string") {
|
||||
$ERROR('#11: typeof Date(Number.NaN) should be "string", actual is ' + (typeof Date(Number.NaN)));
|
||||
}
|
||||
|
||||
//CHECK#12
|
||||
if( typeof Date(Number.POSITIVE_INFINITY) !== "string" ) {
|
||||
$ERROR('#12: typeof Date(Number.POSITIVE_INFINITY) should be "string", actual is '+(typeof Date(Number.POSITIVE_INFINITY)));
|
||||
if (typeof Date(Number.POSITIVE_INFINITY) !== "string") {
|
||||
$ERROR('#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" ) {
|
||||
$ERROR('#13: typeof Date(Number.NEGATIVE_INFINITY) should be "string", actual is '+(typeof Date(Number.NEGATIVE_INFINITY)));
|
||||
if (typeof Date(Number.NEGATIVE_INFINITY) !== "string") {
|
||||
$ERROR('#13: typeof Date(Number.NEGATIVE_INFINITY) should be "string", actual is ' + (typeof Date(Number.NEGATIVE_INFINITY)));
|
||||
}
|
||||
|
||||
//CHECK#14
|
||||
if( typeof Date(undefined) !== "string" ) {
|
||||
$ERROR('#14: typeof Date(undefined) should be "string", actual is '+(typeof Date(undefined)));
|
||||
if (typeof Date(undefined) !== "string") {
|
||||
$ERROR('#14: typeof Date(undefined) should be "string", actual is ' + (typeof Date(undefined)));
|
||||
}
|
||||
|
||||
//CHECK#15
|
||||
if( typeof Date(null) !== "string" ) {
|
||||
$ERROR('#15: typeof Date(null) should be "string", actual is '+(typeof Date(null)));
|
||||
if (typeof Date(null) !== "string") {
|
||||
$ERROR('#15: typeof Date(null) should be "string", actual is ' + (typeof Date(null)));
|
||||
}
|
||||
|
|
|
@ -22,71 +22,71 @@ function isEqual(d1, d2) {
|
|||
}
|
||||
|
||||
//CHECK#1
|
||||
if( !isEqual(Date(), (new Date()).toString()) ) {
|
||||
if (!isEqual(Date(), (new Date()).toString())) {
|
||||
$ERROR('#1: Date() is equal to (new Date()).toString()');
|
||||
}
|
||||
|
||||
//CHECK#2
|
||||
if( !isEqual(Date(1), (new Date()).toString()) ) {
|
||||
if (!isEqual(Date(1), (new Date()).toString())) {
|
||||
$ERROR('#2: Date(1) is equal to (new Date()).toString()');
|
||||
}
|
||||
|
||||
//CHECK#3
|
||||
if( !isEqual(Date(1970, 1), (new Date()).toString()) ) {
|
||||
if (!isEqual(Date(1970, 1), (new Date()).toString())) {
|
||||
$ERROR('#3: Date(1970, 1) is equal to (new Date()).toString()');
|
||||
}
|
||||
|
||||
//CHECK#4
|
||||
if( !isEqual(Date(1970, 1, 1), (new Date()).toString()) ) {
|
||||
if (!isEqual(Date(1970, 1, 1), (new Date()).toString())) {
|
||||
$ERROR('#4: Date(1970, 1, 1) is equal to (new Date()).toString()');
|
||||
}
|
||||
|
||||
//CHECK#5
|
||||
if( !isEqual(Date(1970, 1, 1, 1), (new Date()).toString()) ) {
|
||||
if (!isEqual(Date(1970, 1, 1, 1), (new Date()).toString())) {
|
||||
$ERROR('#5: Date(1970, 1, 1, 1) is equal to (new Date()).toString()');
|
||||
}
|
||||
|
||||
//CHECK#6
|
||||
if( !isEqual(Date(1970, 1, 1, 1), (new Date()).toString()) ) {
|
||||
if (!isEqual(Date(1970, 1, 1, 1), (new Date()).toString())) {
|
||||
$ERROR('#7: Date(1970, 1, 1, 1) is equal to (new Date()).toString()');
|
||||
}
|
||||
|
||||
//CHECK#8
|
||||
if( !isEqual(Date(1970, 1, 1, 1, 0), (new Date()).toString()) ) {
|
||||
if (!isEqual(Date(1970, 1, 1, 1, 0), (new Date()).toString())) {
|
||||
$ERROR('#8: Date(1970, 1, 1, 1, 0) is equal to (new Date()).toString()');
|
||||
}
|
||||
|
||||
//CHECK#9
|
||||
if( !isEqual(Date(1970, 1, 1, 1, 0, 0), (new Date()).toString()) ) {
|
||||
if (!isEqual(Date(1970, 1, 1, 1, 0, 0), (new Date()).toString())) {
|
||||
$ERROR('#9: Date(1970, 1, 1, 1, 0, 0) is equal to (new Date()).toString()');
|
||||
}
|
||||
|
||||
//CHECK#10
|
||||
if( !isEqual(Date(1970, 1, 1, 1, 0, 0, 0), (new Date()).toString()) ) {
|
||||
if (!isEqual(Date(1970, 1, 1, 1, 0, 0, 0), (new Date()).toString())) {
|
||||
$ERROR('#10: Date(1970, 1, 1, 1, 0, 0, 0) is equal to (new Date()).toString()');
|
||||
}
|
||||
|
||||
//CHECK#11
|
||||
if( !isEqual(Date(Number.NaN), (new Date()).toString()) ) {
|
||||
if (!isEqual(Date(Number.NaN), (new Date()).toString())) {
|
||||
$ERROR('#11: Date(Number.NaN) is equal to (new Date()).toString()');
|
||||
}
|
||||
|
||||
//CHECK#12
|
||||
if( !isEqual(Date(Number.POSITIVE_INFINITY), (new Date()).toString()) ) {
|
||||
if (!isEqual(Date(Number.POSITIVE_INFINITY), (new Date()).toString())) {
|
||||
$ERROR('#12: Date(Number.POSITIVE_INFINITY) is equal to (new Date()).toString()');
|
||||
}
|
||||
|
||||
//CHECK#13
|
||||
if( !isEqual(Date(Number.NEGATIVE_INFINITY), (new Date()).toString()) ) {
|
||||
if (!isEqual(Date(Number.NEGATIVE_INFINITY), (new Date()).toString())) {
|
||||
$ERROR('#13: Date(Number.NEGATIVE_INFINITY) is equal to (new Date()).toString()');
|
||||
}
|
||||
|
||||
//CHECK#14
|
||||
if( !isEqual(Date(undefined), (new Date()).toString()) ) {
|
||||
if (!isEqual(Date(undefined), (new Date()).toString())) {
|
||||
$ERROR('#14: Date(undefined) is equal to (new Date()).toString()');
|
||||
}
|
||||
|
||||
//CHECK#15
|
||||
if( !isEqual(Date(null), (new Date()).toString()) ) {
|
||||
if (!isEqual(Date(null), (new Date()).toString())) {
|
||||
$ERROR('#15: Date(null) is equal to (new Date()).toString()');
|
||||
}
|
||||
|
|
|
@ -19,12 +19,12 @@ if (new Date(1899, 11) === undefined) {
|
|||
}
|
||||
|
||||
var x13 = new Date(1899, 11);
|
||||
if(typeof x13 !== "object"){
|
||||
if (typeof x13 !== "object") {
|
||||
$ERROR("#1.3: typeof new Date(1899, 11) should be 'object'");
|
||||
}
|
||||
|
||||
var x14 = new Date(1899, 11);
|
||||
if(x14 === undefined){
|
||||
if (x14 === undefined) {
|
||||
$ERROR("#1.4: new Date(1899, 11) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -37,12 +37,12 @@ if (new Date(1899, 12) === undefined) {
|
|||
}
|
||||
|
||||
var x23 = new Date(1899, 12);
|
||||
if(typeof x23 !== "object"){
|
||||
if (typeof x23 !== "object") {
|
||||
$ERROR("#2.3: typeof new Date(1899, 12) should be 'object'");
|
||||
}
|
||||
|
||||
var x24 = new Date(1899, 12);
|
||||
if(x24 === undefined){
|
||||
if (x24 === undefined) {
|
||||
$ERROR("#2.4: new Date(1899, 12) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -55,12 +55,12 @@ if (new Date(1900, 0) === undefined) {
|
|||
}
|
||||
|
||||
var x33 = new Date(1900, 0);
|
||||
if(typeof x33 !== "object"){
|
||||
if (typeof x33 !== "object") {
|
||||
$ERROR("#3.3: typeof new Date(1900, 0) should be 'object'");
|
||||
}
|
||||
|
||||
var x34 = new Date(1900, 0);
|
||||
if(x34 === undefined){
|
||||
if (x34 === undefined) {
|
||||
$ERROR("#3.4: new Date(1900, 0) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -73,12 +73,12 @@ if (new Date(1969, 11) === undefined) {
|
|||
}
|
||||
|
||||
var x43 = new Date(1969, 11);
|
||||
if(typeof x43 !== "object"){
|
||||
if (typeof x43 !== "object") {
|
||||
$ERROR("#4.3: typeof new Date(1969, 11) should be 'object'");
|
||||
}
|
||||
|
||||
var x44 = new Date(1969, 11);
|
||||
if(x44 === undefined){
|
||||
if (x44 === undefined) {
|
||||
$ERROR("#4.4: new Date(1969, 11) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -91,12 +91,12 @@ if (new Date(1969, 12) === undefined) {
|
|||
}
|
||||
|
||||
var x53 = new Date(1969, 12);
|
||||
if(typeof x53 !== "object"){
|
||||
if (typeof x53 !== "object") {
|
||||
$ERROR("#5.3: typeof new Date(1969, 12) should be 'object'");
|
||||
}
|
||||
|
||||
var x54 = new Date(1969, 12);
|
||||
if(x54 === undefined){
|
||||
if (x54 === undefined) {
|
||||
$ERROR("#5.4: new Date(1969, 12) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -109,12 +109,12 @@ if (new Date(1970, 0) === undefined) {
|
|||
}
|
||||
|
||||
var x63 = new Date(1970, 0);
|
||||
if(typeof x63 !== "object"){
|
||||
if (typeof x63 !== "object") {
|
||||
$ERROR("#6.3: typeof new Date(1970, 0) should be 'object'");
|
||||
}
|
||||
|
||||
var x64 = new Date(1970, 0);
|
||||
if(x64 === undefined){
|
||||
if (x64 === undefined) {
|
||||
$ERROR("#6.4: new Date(1970, 0) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -127,12 +127,12 @@ if (new Date(1999, 11) === undefined) {
|
|||
}
|
||||
|
||||
var x73 = new Date(1999, 11);
|
||||
if(typeof x73 !== "object"){
|
||||
if (typeof x73 !== "object") {
|
||||
$ERROR("#7.3: typeof new Date(1999, 11) should be 'object'");
|
||||
}
|
||||
|
||||
var x74 = new Date(1999, 11);
|
||||
if(x74 === undefined){
|
||||
if (x74 === undefined) {
|
||||
$ERROR("#7.4: new Date(1999, 11) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -145,12 +145,12 @@ if (new Date(1999, 12) === undefined) {
|
|||
}
|
||||
|
||||
var x83 = new Date(1999, 12);
|
||||
if(typeof x83 !== "object"){
|
||||
if (typeof x83 !== "object") {
|
||||
$ERROR("#8.3: typeof new Date(1999, 12) should be 'object'");
|
||||
}
|
||||
|
||||
var x84 = new Date(1999, 12);
|
||||
if(x84 === undefined){
|
||||
if (x84 === undefined) {
|
||||
$ERROR("#8.4: new Date(1999, 12) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -163,12 +163,12 @@ if (new Date(2000, 0) === undefined) {
|
|||
}
|
||||
|
||||
var x93 = new Date(2000, 0);
|
||||
if(typeof x93 !== "object"){
|
||||
if (typeof x93 !== "object") {
|
||||
$ERROR("#9.3: typeof new Date(2000, 0) should be 'object'");
|
||||
}
|
||||
|
||||
var x94 = new Date(2000, 0);
|
||||
if(x94 === undefined){
|
||||
if (x94 === undefined) {
|
||||
$ERROR("#9.4: new Date(2000, 0) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -181,12 +181,12 @@ if (new Date(2099, 11) === undefined) {
|
|||
}
|
||||
|
||||
var x103 = new Date(2099, 11);
|
||||
if(typeof x103 !== "object"){
|
||||
if (typeof x103 !== "object") {
|
||||
$ERROR("#10.3: typeof new Date(2099, 11) should be 'object'");
|
||||
}
|
||||
|
||||
var x104 = new Date(2099, 11);
|
||||
if(x104 === undefined){
|
||||
if (x104 === undefined) {
|
||||
$ERROR("#10.4: new Date(2099, 11) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -199,12 +199,12 @@ if (new Date(2099, 12) === undefined) {
|
|||
}
|
||||
|
||||
var x113 = new Date(2099, 12);
|
||||
if(typeof x113 !== "object"){
|
||||
if (typeof x113 !== "object") {
|
||||
$ERROR("#11.3: typeof new Date(2099, 12) should be 'object'");
|
||||
}
|
||||
|
||||
var x114 = new Date(2099, 12);
|
||||
if(x114 === undefined){
|
||||
if (x114 === undefined) {
|
||||
$ERROR("#11.4: new Date(2099, 12) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -217,11 +217,11 @@ if (new Date(2100, 0) === undefined) {
|
|||
}
|
||||
|
||||
var x123 = new Date(2100, 0);
|
||||
if(typeof x123 !== "object"){
|
||||
if (typeof x123 !== "object") {
|
||||
$ERROR("#12.3: typeof new Date(2100, 0) should be 'object'");
|
||||
}
|
||||
|
||||
var x124 = new Date(2100, 0);
|
||||
if(x124 === undefined){
|
||||
if (x124 === undefined) {
|
||||
$ERROR("#12.4: new Date(2100, 0) should not be undefined");
|
||||
}
|
||||
|
|
|
@ -19,12 +19,12 @@ if (new Date(1899, 11, 31) === undefined) {
|
|||
}
|
||||
|
||||
var x13 = new Date(1899, 11, 31);
|
||||
if(typeof x13 !== "object"){
|
||||
if (typeof x13 !== "object") {
|
||||
$ERROR("#1.3: typeof new Date(1899, 11, 31) should be 'object'");
|
||||
}
|
||||
|
||||
var x14 = new Date(1899, 11, 31);
|
||||
if(x14 === undefined){
|
||||
if (x14 === undefined) {
|
||||
$ERROR("#1.4: new Date(1899, 11, 31) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -37,12 +37,12 @@ if (new Date(1899, 12, 1) === undefined) {
|
|||
}
|
||||
|
||||
var x23 = new Date(1899, 12, 1);
|
||||
if(typeof x23 !== "object"){
|
||||
if (typeof x23 !== "object") {
|
||||
$ERROR("#2.3: typeof new Date(1899, 12, 1) should be 'object'");
|
||||
}
|
||||
|
||||
var x24 = new Date(1899, 12, 1);
|
||||
if(x24 === undefined){
|
||||
if (x24 === undefined) {
|
||||
$ERROR("#2.4: new Date(1899, 12, 1) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -55,12 +55,12 @@ if (new Date(1900, 0, 1) === undefined) {
|
|||
}
|
||||
|
||||
var x33 = new Date(1900, 0, 1);
|
||||
if(typeof x33 !== "object"){
|
||||
if (typeof x33 !== "object") {
|
||||
$ERROR("#3.3: typeof new Date(1900, 0, 1) should be 'object'");
|
||||
}
|
||||
|
||||
var x34 = new Date(1900, 0, 1);
|
||||
if(x34 === undefined){
|
||||
if (x34 === undefined) {
|
||||
$ERROR("#3.4: new Date(1900, 0, 1) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -73,12 +73,12 @@ if (new Date(1969, 11, 31) === undefined) {
|
|||
}
|
||||
|
||||
var x43 = new Date(1969, 11, 31);
|
||||
if(typeof x43 !== "object"){
|
||||
if (typeof x43 !== "object") {
|
||||
$ERROR("#4.3: typeof new Date(1969, 11, 31) should be 'object'");
|
||||
}
|
||||
|
||||
var x44 = new Date(1969, 11, 31);
|
||||
if(x44 === undefined){
|
||||
if (x44 === undefined) {
|
||||
$ERROR("#4.4: new Date(1969, 11, 31) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -91,12 +91,12 @@ if (new Date(1969, 12, 1) === undefined) {
|
|||
}
|
||||
|
||||
var x53 = new Date(1969, 12, 1);
|
||||
if(typeof x53 !== "object"){
|
||||
if (typeof x53 !== "object") {
|
||||
$ERROR("#5.3: typeof new Date(1969, 12, 1) should be 'object'");
|
||||
}
|
||||
|
||||
var x54 = new Date(1969, 12, 1);
|
||||
if(x54 === undefined){
|
||||
if (x54 === undefined) {
|
||||
$ERROR("#5.4: new Date(1969, 12, 1) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -109,12 +109,12 @@ if (new Date(1970, 0, 1) === undefined) {
|
|||
}
|
||||
|
||||
var x63 = new Date(1970, 0, 1);
|
||||
if(typeof x63 !== "object"){
|
||||
if (typeof x63 !== "object") {
|
||||
$ERROR("#6.3: typeof new Date(1970, 0, 1) should be 'object'");
|
||||
}
|
||||
|
||||
var x64 = new Date(1970, 0, 1);
|
||||
if(x64 === undefined){
|
||||
if (x64 === undefined) {
|
||||
$ERROR("#6.4: new Date(1970, 0, 1) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -127,12 +127,12 @@ if (new Date(1999, 11, 31) === undefined) {
|
|||
}
|
||||
|
||||
var x73 = new Date(1999, 11, 31);
|
||||
if(typeof x73 !== "object"){
|
||||
if (typeof x73 !== "object") {
|
||||
$ERROR("#7.3: typeof new Date(1999, 11, 31) should be 'object'");
|
||||
}
|
||||
|
||||
var x74 = new Date(1999, 11, 31);
|
||||
if(x74 === undefined){
|
||||
if (x74 === undefined) {
|
||||
$ERROR("#7.4: new Date(1999, 11, 31) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -145,12 +145,12 @@ if (new Date(1999, 12, 1) === undefined) {
|
|||
}
|
||||
|
||||
var x83 = new Date(1999, 12, 1);
|
||||
if(typeof x83 !== "object"){
|
||||
if (typeof x83 !== "object") {
|
||||
$ERROR("#8.3: typeof new Date(1999, 12, 1) should be 'object'");
|
||||
}
|
||||
|
||||
var x84 = new Date(1999, 12, 1);
|
||||
if(x84 === undefined){
|
||||
if (x84 === undefined) {
|
||||
$ERROR("#8.4: new Date(1999, 12, 1) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -163,12 +163,12 @@ if (new Date(2000, 0, 1) === undefined) {
|
|||
}
|
||||
|
||||
var x93 = new Date(2000, 0, 1);
|
||||
if(typeof x93 !== "object"){
|
||||
if (typeof x93 !== "object") {
|
||||
$ERROR("#9.3: typeof new Date(2000, 0, 1) should be 'object'");
|
||||
}
|
||||
|
||||
var x94 = new Date(2000, 0, 1);
|
||||
if(x94 === undefined){
|
||||
if (x94 === undefined) {
|
||||
$ERROR("#9.4: new Date(2000, 0, 1) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -181,12 +181,12 @@ if (new Date(2099, 11, 31) === undefined) {
|
|||
}
|
||||
|
||||
var x103 = new Date(2099, 11, 31);
|
||||
if(typeof x103 !== "object"){
|
||||
if (typeof x103 !== "object") {
|
||||
$ERROR("#10.3: typeof new Date(2099, 11, 31) should be 'object'");
|
||||
}
|
||||
|
||||
var x104 = new Date(2099, 11, 31);
|
||||
if(x104 === undefined){
|
||||
if (x104 === undefined) {
|
||||
$ERROR("#10.4: new Date(2099, 11, 31) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -199,12 +199,12 @@ if (new Date(2099, 12, 1) === undefined) {
|
|||
}
|
||||
|
||||
var x113 = new Date(2099, 12, 1);
|
||||
if(typeof x113 !== "object"){
|
||||
if (typeof x113 !== "object") {
|
||||
$ERROR("#11.3: typeof new Date(2099, 12, 1) should be 'object'");
|
||||
}
|
||||
|
||||
var x114 = new Date(2099, 12, 1);
|
||||
if(x114 === undefined){
|
||||
if (x114 === undefined) {
|
||||
$ERROR("#11.4: new Date(2099, 12, 1) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -217,11 +217,11 @@ if (new Date(2100, 0, 1) === undefined) {
|
|||
}
|
||||
|
||||
var x123 = new Date(2100, 0, 1);
|
||||
if(typeof x123 !== "object"){
|
||||
if (typeof x123 !== "object") {
|
||||
$ERROR("#12.3: typeof new Date(2100, 0, 1) should be 'object'");
|
||||
}
|
||||
|
||||
var x124 = new Date(2100, 0, 1);
|
||||
if(x124 === undefined){
|
||||
if (x124 === undefined) {
|
||||
$ERROR("#12.4: new Date(2100, 0, 1) should not be undefined");
|
||||
}
|
||||
|
|
|
@ -19,12 +19,12 @@ if (new Date(1899, 11, 31, 23) === undefined) {
|
|||
}
|
||||
|
||||
var x13 = new Date(1899, 11, 31, 23);
|
||||
if(typeof x13 !== "object"){
|
||||
if (typeof x13 !== "object") {
|
||||
$ERROR("#1.3: typeof new Date(1899, 11, 31, 23) should be 'object'");
|
||||
}
|
||||
|
||||
var x14 = new Date(1899, 11, 31, 23);
|
||||
if(x14 === undefined){
|
||||
if (x14 === undefined) {
|
||||
$ERROR("#1.4: new Date(1899, 11, 31, 23) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -37,12 +37,12 @@ if (new Date(1899, 12, 1, 0) === undefined) {
|
|||
}
|
||||
|
||||
var x23 = new Date(1899, 12, 1, 0);
|
||||
if(typeof x23 !== "object"){
|
||||
if (typeof x23 !== "object") {
|
||||
$ERROR("#2.3: typeof new Date(1899, 12, 1, 0) should be 'object'");
|
||||
}
|
||||
|
||||
var x24 = new Date(1899, 12, 1, 0);
|
||||
if(x24 === undefined){
|
||||
if (x24 === undefined) {
|
||||
$ERROR("#2.4: new Date(1899, 12, 1, 0) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -55,12 +55,12 @@ if (new Date(1900, 0, 1, 0) === undefined) {
|
|||
}
|
||||
|
||||
var x33 = new Date(1900, 0, 1, 0);
|
||||
if(typeof x33 !== "object"){
|
||||
if (typeof x33 !== "object") {
|
||||
$ERROR("#3.3: typeof new Date(1900, 0, 1, 0) should be 'object'");
|
||||
}
|
||||
|
||||
var x34 = new Date(1900, 0, 1, 0);
|
||||
if(x34 === undefined){
|
||||
if (x34 === undefined) {
|
||||
$ERROR("#3.4: new Date(1900, 0, 1, 0) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -73,12 +73,12 @@ if (new Date(1969, 11, 31, 23) === undefined) {
|
|||
}
|
||||
|
||||
var x43 = new Date(1969, 11, 31, 23);
|
||||
if(typeof x43 !== "object"){
|
||||
if (typeof x43 !== "object") {
|
||||
$ERROR("#4.3: typeof new Date(1969, 11, 31, 23) should be 'object'");
|
||||
}
|
||||
|
||||
var x44 = new Date(1969, 11, 31, 23);
|
||||
if(x44 === undefined){
|
||||
if (x44 === undefined) {
|
||||
$ERROR("#4.4: new Date(1969, 11, 31, 23) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -91,12 +91,12 @@ if (new Date(1969, 12, 1, 0) === undefined) {
|
|||
}
|
||||
|
||||
var x53 = new Date(1969, 12, 1, 0);
|
||||
if(typeof x53 !== "object"){
|
||||
if (typeof x53 !== "object") {
|
||||
$ERROR("#5.3: typeof new Date(1969, 12, 1, 0) should be 'object'");
|
||||
}
|
||||
|
||||
var x54 = new Date(1969, 12, 1, 0);
|
||||
if(x54 === undefined){
|
||||
if (x54 === undefined) {
|
||||
$ERROR("#5.4: new Date(1969, 12, 1, 0) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -109,12 +109,12 @@ if (new Date(1970, 0, 1, 0) === undefined) {
|
|||
}
|
||||
|
||||
var x63 = new Date(1970, 0, 1, 0);
|
||||
if(typeof x63 !== "object"){
|
||||
if (typeof x63 !== "object") {
|
||||
$ERROR("#6.3: typeof new Date(1970, 0, 1, 0) should be 'object'");
|
||||
}
|
||||
|
||||
var x64 = new Date(1970, 0, 1, 0);
|
||||
if(x64 === undefined){
|
||||
if (x64 === undefined) {
|
||||
$ERROR("#6.4: new Date(1970, 0, 1, 0) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -127,12 +127,12 @@ if (new Date(1999, 11, 31, 23) === undefined) {
|
|||
}
|
||||
|
||||
var x73 = new Date(1999, 11, 31, 23);
|
||||
if(typeof x73 !== "object"){
|
||||
if (typeof x73 !== "object") {
|
||||
$ERROR("#7.3: typeof new Date(1999, 11, 31, 23) should be 'object'");
|
||||
}
|
||||
|
||||
var x74 = new Date(1999, 11, 31, 23);
|
||||
if(x74 === undefined){
|
||||
if (x74 === undefined) {
|
||||
$ERROR("#7.4: new Date(1999, 11, 31, 23) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -145,12 +145,12 @@ if (new Date(1999, 12, 1, 0) === undefined) {
|
|||
}
|
||||
|
||||
var x83 = new Date(1999, 12, 1, 0);
|
||||
if(typeof x83 !== "object"){
|
||||
if (typeof x83 !== "object") {
|
||||
$ERROR("#8.3: typeof new Date(1999, 12, 1, 0) should be 'object'");
|
||||
}
|
||||
|
||||
var x84 = new Date(1999, 12, 1, 0);
|
||||
if(x84 === undefined){
|
||||
if (x84 === undefined) {
|
||||
$ERROR("#8.4: new Date(1999, 12, 1, 0) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -163,12 +163,12 @@ if (new Date(2000, 0, 1, 0) === undefined) {
|
|||
}
|
||||
|
||||
var x93 = new Date(2000, 0, 1, 0);
|
||||
if(typeof x93 !== "object"){
|
||||
if (typeof x93 !== "object") {
|
||||
$ERROR("#9.3: typeof new Date(2000, 0, 1, 0) should be 'object'");
|
||||
}
|
||||
|
||||
var x94 = new Date(2000, 0, 1, 0);
|
||||
if(x94 === undefined){
|
||||
if (x94 === undefined) {
|
||||
$ERROR("#9.4: new Date(2000, 0, 1, 0) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -181,12 +181,12 @@ if (new Date(2099, 11, 31, 23) === undefined) {
|
|||
}
|
||||
|
||||
var x103 = new Date(2099, 11, 31, 23);
|
||||
if(typeof x103 !== "object"){
|
||||
if (typeof x103 !== "object") {
|
||||
$ERROR("#10.3: typeof new Date(2099, 11, 31, 23) should be 'object'");
|
||||
}
|
||||
|
||||
var x104 = new Date(2099, 11, 31, 23);
|
||||
if(x104 === undefined){
|
||||
if (x104 === undefined) {
|
||||
$ERROR("#10.4: new Date(2099, 11, 31, 23) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -199,12 +199,12 @@ if (new Date(2099, 12, 1, 0) === undefined) {
|
|||
}
|
||||
|
||||
var x113 = new Date(2099, 12, 1, 0);
|
||||
if(typeof x113 !== "object"){
|
||||
if (typeof x113 !== "object") {
|
||||
$ERROR("#11.3: typeof new Date(2099, 12, 1, 0) should be 'object'");
|
||||
}
|
||||
|
||||
var x114 = new Date(2099, 12, 1, 0);
|
||||
if(x114 === undefined){
|
||||
if (x114 === undefined) {
|
||||
$ERROR("#11.4: new Date(2099, 12, 1, 0) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -217,11 +217,11 @@ if (new Date(2100, 0, 1, 0) === undefined) {
|
|||
}
|
||||
|
||||
var x123 = new Date(2100, 0, 1, 0);
|
||||
if(typeof x123 !== "object"){
|
||||
if (typeof x123 !== "object") {
|
||||
$ERROR("#12.3: typeof new Date(2100, 0, 1, 0) should be 'object'");
|
||||
}
|
||||
|
||||
var x124 = new Date(2100, 0, 1, 0);
|
||||
if(x124 === undefined){
|
||||
if (x124 === undefined) {
|
||||
$ERROR("#12.4: new Date(2100, 0, 1, 0) should not be undefined");
|
||||
}
|
||||
|
|
|
@ -19,12 +19,12 @@ if (new Date(1899, 11, 31, 23, 59) === undefined) {
|
|||
}
|
||||
|
||||
var x13 = new Date(1899, 11, 31, 23, 59);
|
||||
if(typeof x13 !== "object"){
|
||||
if (typeof x13 !== "object") {
|
||||
$ERROR("#1.3: typeof new Date(1899, 11, 31, 23, 59) should be 'object'");
|
||||
}
|
||||
|
||||
var x14 = new Date(1899, 11, 31, 23, 59);
|
||||
if(x14 === undefined){
|
||||
if (x14 === undefined) {
|
||||
$ERROR("#1.4: new Date(1899, 11, 31, 23, 59) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -37,12 +37,12 @@ if (new Date(1899, 12, 1, 0, 0) === undefined) {
|
|||
}
|
||||
|
||||
var x23 = new Date(1899, 12, 1, 0, 0);
|
||||
if(typeof x23 !== "object"){
|
||||
if (typeof x23 !== "object") {
|
||||
$ERROR("#2.3: typeof new Date(1899, 12, 1, 0, 0) should be 'object'");
|
||||
}
|
||||
|
||||
var x24 = new Date(1899, 12, 1, 0, 0);
|
||||
if(x24 === undefined){
|
||||
if (x24 === undefined) {
|
||||
$ERROR("#2.4: new Date(1899, 12, 1, 0, 0) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -55,12 +55,12 @@ if (new Date(1900, 0, 1, 0, 0) === undefined) {
|
|||
}
|
||||
|
||||
var x33 = new Date(1900, 0, 1, 0, 0);
|
||||
if(typeof x33 !== "object"){
|
||||
if (typeof x33 !== "object") {
|
||||
$ERROR("#3.3: typeof new Date(1900, 0, 1, 0, 0) should be 'object'");
|
||||
}
|
||||
|
||||
var x34 = new Date(1900, 0, 1, 0, 0);
|
||||
if(x34 === undefined){
|
||||
if (x34 === undefined) {
|
||||
$ERROR("#3.4: new Date(1900, 0, 1, 0, 0) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -73,12 +73,12 @@ if (new Date(1969, 11, 31, 23, 59) === undefined) {
|
|||
}
|
||||
|
||||
var x43 = new Date(1969, 11, 31, 23, 59);
|
||||
if(typeof x43 !== "object"){
|
||||
if (typeof x43 !== "object") {
|
||||
$ERROR("#4.3: typeof new Date(1969, 11, 31, 23, 59) should be 'object'");
|
||||
}
|
||||
|
||||
var x44 = new Date(1969, 11, 31, 23, 59);
|
||||
if(x44 === undefined){
|
||||
if (x44 === undefined) {
|
||||
$ERROR("#4.4: new Date(1969, 11, 31, 23, 59) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -91,12 +91,12 @@ if (new Date(1969, 12, 1, 0, 0) === undefined) {
|
|||
}
|
||||
|
||||
var x53 = new Date(1969, 12, 1, 0, 0);
|
||||
if(typeof x53 !== "object"){
|
||||
if (typeof x53 !== "object") {
|
||||
$ERROR("#5.3: typeof new Date(1969, 12, 1, 0, 0) should be 'object'");
|
||||
}
|
||||
|
||||
var x54 = new Date(1969, 12, 1, 0, 0);
|
||||
if(x54 === undefined){
|
||||
if (x54 === undefined) {
|
||||
$ERROR("#5.4: new Date(1969, 12, 1, 0, 0) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -109,12 +109,12 @@ if (new Date(1970, 0, 1, 0, 0) === undefined) {
|
|||
}
|
||||
|
||||
var x63 = new Date(1970, 0, 1, 0, 0);
|
||||
if(typeof x63 !== "object"){
|
||||
if (typeof x63 !== "object") {
|
||||
$ERROR("#6.3: typeof new Date(1970, 0, 1, 0, 0) should be 'object'");
|
||||
}
|
||||
|
||||
var x64 = new Date(1970, 0, 1, 0, 0);
|
||||
if(x64 === undefined){
|
||||
if (x64 === undefined) {
|
||||
$ERROR("#6.4: new Date(1970, 0, 1, 0, 0) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -127,12 +127,12 @@ if (new Date(1999, 11, 31, 23, 59) === undefined) {
|
|||
}
|
||||
|
||||
var x73 = new Date(1999, 11, 31, 23, 59);
|
||||
if(typeof x73 !== "object"){
|
||||
if (typeof x73 !== "object") {
|
||||
$ERROR("#7.3: typeof new Date(1999, 11, 31, 23, 59) should be 'object'");
|
||||
}
|
||||
|
||||
var x74 = new Date(1999, 11, 31, 23, 59);
|
||||
if(x74 === undefined){
|
||||
if (x74 === undefined) {
|
||||
$ERROR("#7.4: new Date(1999, 11, 31, 23, 59) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -145,12 +145,12 @@ if (new Date(1999, 12, 1, 0, 0) === undefined) {
|
|||
}
|
||||
|
||||
var x83 = new Date(1999, 12, 1, 0, 0);
|
||||
if(typeof x83 !== "object"){
|
||||
if (typeof x83 !== "object") {
|
||||
$ERROR("#8.3: typeof new Date(1999, 12, 1, 0, 0) should be 'object'");
|
||||
}
|
||||
|
||||
var x84 = new Date(1999, 12, 1, 0, 0);
|
||||
if(x84 === undefined){
|
||||
if (x84 === undefined) {
|
||||
$ERROR("#8.4: new Date(1999, 12, 1, 0, 0) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -163,12 +163,12 @@ if (new Date(2000, 0, 1, 0, 0) === undefined) {
|
|||
}
|
||||
|
||||
var x93 = new Date(2000, 0, 1, 0, 0);
|
||||
if(typeof x93 !== "object"){
|
||||
if (typeof x93 !== "object") {
|
||||
$ERROR("#9.3: typeof new Date(2000, 0, 1, 0, 0) should be 'object'");
|
||||
}
|
||||
|
||||
var x94 = new Date(2000, 0, 1, 0, 0);
|
||||
if(x94 === undefined){
|
||||
if (x94 === undefined) {
|
||||
$ERROR("#9.4: new Date(2000, 0, 1, 0, 0) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -181,12 +181,12 @@ if (new Date(2099, 11, 31, 23, 59) === undefined) {
|
|||
}
|
||||
|
||||
var x103 = new Date(2099, 11, 31, 23, 59);
|
||||
if(typeof x103 !== "object"){
|
||||
if (typeof x103 !== "object") {
|
||||
$ERROR("#10.3: typeof new Date(2099, 11, 31, 23, 59) should be 'object'");
|
||||
}
|
||||
|
||||
var x104 = new Date(2099, 11, 31, 23, 59);
|
||||
if(x104 === undefined){
|
||||
if (x104 === undefined) {
|
||||
$ERROR("#10.4: new Date(2099, 11, 31, 23, 59) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -199,12 +199,12 @@ if (new Date(2099, 12, 1, 0, 0) === undefined) {
|
|||
}
|
||||
|
||||
var x113 = new Date(2099, 12, 1, 0, 0);
|
||||
if(typeof x113 !== "object"){
|
||||
if (typeof x113 !== "object") {
|
||||
$ERROR("#11.3: typeof new Date(2099, 12, 1, 0, 0) should be 'object'");
|
||||
}
|
||||
|
||||
var x114 = new Date(2099, 12, 1, 0, 0);
|
||||
if(x114 === undefined){
|
||||
if (x114 === undefined) {
|
||||
$ERROR("#11.4: new Date(2099, 12, 1, 0, 0) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -217,11 +217,11 @@ if (new Date(2100, 0, 1, 0, 0) === undefined) {
|
|||
}
|
||||
|
||||
var x123 = new Date(2100, 0, 1, 0, 0);
|
||||
if(typeof x123 !== "object"){
|
||||
if (typeof x123 !== "object") {
|
||||
$ERROR("#12.3: typeof new Date(2100, 0, 1, 0, 0) should be 'object'");
|
||||
}
|
||||
|
||||
var x124 = new Date(2100, 0, 1, 0, 0);
|
||||
if(x124 === undefined){
|
||||
if (x124 === undefined) {
|
||||
$ERROR("#12.4: new Date(2100, 0, 1, 0, 0) should not be undefined");
|
||||
}
|
||||
|
|
|
@ -19,12 +19,12 @@ if (new Date(1899, 11, 31, 23, 59, 59) === undefined) {
|
|||
}
|
||||
|
||||
var x13 = new Date(1899, 11, 31, 23, 59, 59);
|
||||
if(typeof x13 !== "object"){
|
||||
if (typeof x13 !== "object") {
|
||||
$ERROR("#1.3: typeof new Date(1899, 11, 31, 23, 59, 59) should be 'object'");
|
||||
}
|
||||
|
||||
var x14 = new Date(1899, 11, 31, 23, 59, 59);
|
||||
if(x14 === undefined){
|
||||
if (x14 === undefined) {
|
||||
$ERROR("#1.4: new Date(1899, 11, 31, 23, 59, 59) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -37,12 +37,12 @@ if (new Date(1899, 12, 1, 0, 0, 0) === undefined) {
|
|||
}
|
||||
|
||||
var x23 = new Date(1899, 12, 1, 0, 0, 0);
|
||||
if(typeof x23 !== "object"){
|
||||
if (typeof x23 !== "object") {
|
||||
$ERROR("#2.3: typeof new Date(1899, 12, 1, 0, 0, 0) should be 'object'");
|
||||
}
|
||||
|
||||
var x24 = new Date(1899, 12, 1, 0, 0, 0);
|
||||
if(x24 === undefined){
|
||||
if (x24 === undefined) {
|
||||
$ERROR("#2.4: new Date(1899, 12, 1, 0, 0, 0) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -55,12 +55,12 @@ if (new Date(1900, 0, 1, 0, 0, 0) === undefined) {
|
|||
}
|
||||
|
||||
var x33 = new Date(1900, 0, 1, 0, 0, 0);
|
||||
if(typeof x33 !== "object"){
|
||||
if (typeof x33 !== "object") {
|
||||
$ERROR("#3.3: typeof new Date(1900, 0, 1, 0, 0, 0) should be 'object'");
|
||||
}
|
||||
|
||||
var x34 = new Date(1900, 0, 1, 0, 0, 0);
|
||||
if(x34 === undefined){
|
||||
if (x34 === undefined) {
|
||||
$ERROR("#3.4: new Date(1900, 0, 1, 0, 0, 0) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -73,12 +73,12 @@ if (new Date(1969, 11, 31, 23, 59, 59) === undefined) {
|
|||
}
|
||||
|
||||
var x43 = new Date(1969, 11, 31, 23, 59, 59);
|
||||
if(typeof x43 !== "object"){
|
||||
if (typeof x43 !== "object") {
|
||||
$ERROR("#4.3: typeof new Date(1969, 11, 31, 23, 59, 59) should be 'object'");
|
||||
}
|
||||
|
||||
var x44 = new Date(1969, 11, 31, 23, 59, 59);
|
||||
if(x44 === undefined){
|
||||
if (x44 === undefined) {
|
||||
$ERROR("#4.4: new Date(1969, 11, 31, 23, 59, 59) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -91,12 +91,12 @@ if (new Date(1969, 12, 1, 0, 0, 0) === undefined) {
|
|||
}
|
||||
|
||||
var x53 = new Date(1969, 12, 1, 0, 0, 0);
|
||||
if(typeof x53 !== "object"){
|
||||
if (typeof x53 !== "object") {
|
||||
$ERROR("#5.3: typeof new Date(1969, 12, 1, 0, 0, 0) should be 'object'");
|
||||
}
|
||||
|
||||
var x54 = new Date(1969, 12, 1, 0, 0, 0);
|
||||
if(x54 === undefined){
|
||||
if (x54 === undefined) {
|
||||
$ERROR("#5.4: new Date(1969, 12, 1, 0, 0, 0) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -109,12 +109,12 @@ if (new Date(1970, 0, 1, 0, 0, 0) === undefined) {
|
|||
}
|
||||
|
||||
var x63 = new Date(1970, 0, 1, 0, 0, 0);
|
||||
if(typeof x63 !== "object"){
|
||||
if (typeof x63 !== "object") {
|
||||
$ERROR("#6.3: typeof new Date(1970, 0, 1, 0, 0, 0) should be 'object'");
|
||||
}
|
||||
|
||||
var x64 = new Date(1970, 0, 1, 0, 0, 0);
|
||||
if(x64 === undefined){
|
||||
if (x64 === undefined) {
|
||||
$ERROR("#6.4: new Date(1970, 0, 1, 0, 0, 0) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -127,12 +127,12 @@ if (new Date(1999, 11, 31, 23, 59, 59) === undefined) {
|
|||
}
|
||||
|
||||
var x73 = new Date(1999, 11, 31, 23, 59, 59);
|
||||
if(typeof x73 !== "object"){
|
||||
if (typeof x73 !== "object") {
|
||||
$ERROR("#7.3: typeof new Date(1999, 11, 31, 23, 59, 59) should be 'object'");
|
||||
}
|
||||
|
||||
var x74 = new Date(1999, 11, 31, 23, 59, 59);
|
||||
if(x74 === undefined){
|
||||
if (x74 === undefined) {
|
||||
$ERROR("#7.4: new Date(1999, 11, 31, 23, 59, 59) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -145,12 +145,12 @@ if (new Date(1999, 12, 1, 0, 0, 0) === undefined) {
|
|||
}
|
||||
|
||||
var x83 = new Date(1999, 12, 1, 0, 0, 0);
|
||||
if(typeof x83 !== "object"){
|
||||
if (typeof x83 !== "object") {
|
||||
$ERROR("#8.3: typeof new Date(1999, 12, 1, 0, 0, 0) should be 'object'");
|
||||
}
|
||||
|
||||
var x84 = new Date(1999, 12, 1, 0, 0, 0);
|
||||
if(x84 === undefined){
|
||||
if (x84 === undefined) {
|
||||
$ERROR("#8.4: new Date(1999, 12, 1, 0, 0, 0) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -163,12 +163,12 @@ if (new Date(2000, 0, 1, 0, 0, 0) === undefined) {
|
|||
}
|
||||
|
||||
var x93 = new Date(2000, 0, 1, 0, 0, 0);
|
||||
if(typeof x93 !== "object"){
|
||||
if (typeof x93 !== "object") {
|
||||
$ERROR("#9.3: typeof new Date(2000, 0, 1, 0, 0, 0) should be 'object'");
|
||||
}
|
||||
|
||||
var x94 = new Date(2000, 0, 1, 0, 0, 0);
|
||||
if(x94 === undefined){
|
||||
if (x94 === undefined) {
|
||||
$ERROR("#9.4: new Date(2000, 0, 1, 0, 0, 0) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -181,12 +181,12 @@ if (new Date(2099, 11, 31, 23, 59, 59) === undefined) {
|
|||
}
|
||||
|
||||
var x103 = new Date(2099, 11, 31, 23, 59, 59);
|
||||
if(typeof x103 !== "object"){
|
||||
if (typeof x103 !== "object") {
|
||||
$ERROR("#10.3: typeof new Date(2099, 11, 31, 23, 59, 59) should be 'object'");
|
||||
}
|
||||
|
||||
var x104 = new Date(2099, 11, 31, 23, 59, 59);
|
||||
if(x104 === undefined){
|
||||
if (x104 === undefined) {
|
||||
$ERROR("#10.4: new Date(2099, 11, 31, 23, 59, 59) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -199,12 +199,12 @@ if (new Date(2099, 12, 1, 0, 0, 0) === undefined) {
|
|||
}
|
||||
|
||||
var x113 = new Date(2099, 12, 1, 0, 0, 0);
|
||||
if(typeof x113 !== "object"){
|
||||
if (typeof x113 !== "object") {
|
||||
$ERROR("#11.3: typeof new Date(2099, 12, 1, 0, 0, 0) should be 'object'");
|
||||
}
|
||||
|
||||
var x114 = new Date(2099, 12, 1, 0, 0, 0);
|
||||
if(x114 === undefined){
|
||||
if (x114 === undefined) {
|
||||
$ERROR("#11.4: new Date(2099, 12, 1, 0, 0, 0) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -217,11 +217,11 @@ if (new Date(2100, 0, 1, 0, 0, 0) === undefined) {
|
|||
}
|
||||
|
||||
var x123 = new Date(2100, 0, 1, 0, 0, 0);
|
||||
if(typeof x123 !== "object"){
|
||||
if (typeof x123 !== "object") {
|
||||
$ERROR("#12.3: typeof new Date(2100, 0, 1, 0, 0, 0) should be 'object'");
|
||||
}
|
||||
|
||||
var x124 = new Date(2100, 0, 1, 0, 0, 0);
|
||||
if(x124 === undefined){
|
||||
if (x124 === undefined) {
|
||||
$ERROR("#12.4: new Date(2100, 0, 1, 0, 0, 0) should not be undefined");
|
||||
}
|
||||
|
|
|
@ -19,12 +19,12 @@ if (new Date(1899, 11, 31, 23, 59, 59, 999) === undefined) {
|
|||
}
|
||||
|
||||
var x13 = new Date(1899, 11, 31, 23, 59, 59, 999);
|
||||
if(typeof x13 !== "object"){
|
||||
if (typeof x13 !== "object") {
|
||||
$ERROR("#1.3: typeof new Date(1899, 11, 31, 23, 59, 59, 999) should be 'object'");
|
||||
}
|
||||
|
||||
var x14 = new Date(1899, 11, 31, 23, 59, 59, 999);
|
||||
if(x14 === undefined){
|
||||
if (x14 === undefined) {
|
||||
$ERROR("#1.4: new Date(1899, 11, 31, 23, 59, 59, 999) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -37,12 +37,12 @@ if (new Date(1899, 12, 1, 0, 0, 0, 0) === undefined) {
|
|||
}
|
||||
|
||||
var x23 = new Date(1899, 12, 1, 0, 0, 0, 0);
|
||||
if(typeof x23 !== "object"){
|
||||
if (typeof x23 !== "object") {
|
||||
$ERROR("#2.3: typeof new Date(1899, 12, 1, 0, 0, 0, 0) should be 'object'");
|
||||
}
|
||||
|
||||
var x24 = new Date(1899, 12, 1, 0, 0, 0, 0);
|
||||
if(x24 === undefined){
|
||||
if (x24 === undefined) {
|
||||
$ERROR("#2.4: new Date(1899, 12, 1, 0, 0, 0, 0) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -55,12 +55,12 @@ if (new Date(1900, 0, 1, 0, 0, 0, 0) === undefined) {
|
|||
}
|
||||
|
||||
var x33 = new Date(1900, 0, 1, 0, 0, 0, 0);
|
||||
if(typeof x33 !== "object"){
|
||||
if (typeof x33 !== "object") {
|
||||
$ERROR("#3.3: typeof new Date(1900, 0, 1, 0, 0, 0, 0) should be 'object'");
|
||||
}
|
||||
|
||||
var x34 = new Date(1900, 0, 1, 0, 0, 0, 0);
|
||||
if(x34 === undefined){
|
||||
if (x34 === undefined) {
|
||||
$ERROR("#3.4: new Date(1900, 0, 1, 0, 0, 0, 0) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -73,12 +73,12 @@ if (new Date(1969, 11, 31, 23, 59, 59, 999) === undefined) {
|
|||
}
|
||||
|
||||
var x43 = new Date(1969, 11, 31, 23, 59, 59, 999);
|
||||
if(typeof x43 !== "object"){
|
||||
if (typeof x43 !== "object") {
|
||||
$ERROR("#4.3: typeof new Date(1969, 11, 31, 23, 59, 59, 999) should be 'object'");
|
||||
}
|
||||
|
||||
var x44 = new Date(1969, 11, 31, 23, 59, 59, 999);
|
||||
if(x44 === undefined){
|
||||
if (x44 === undefined) {
|
||||
$ERROR("#4.4: new Date(1969, 11, 31, 23, 59, 59, 999) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -91,12 +91,12 @@ if (new Date(1969, 12, 1, 0, 0, 0, 0) === undefined) {
|
|||
}
|
||||
|
||||
var x53 = new Date(1969, 12, 1, 0, 0, 0, 0);
|
||||
if(typeof x53 !== "object"){
|
||||
if (typeof x53 !== "object") {
|
||||
$ERROR("#5.3: typeof new Date(1969, 12, 1, 0, 0, 0, 0) should be 'object'");
|
||||
}
|
||||
|
||||
var x54 = new Date(1969, 12, 1, 0, 0, 0, 0);
|
||||
if(x54 === undefined){
|
||||
if (x54 === undefined) {
|
||||
$ERROR("#5.4: new Date(1969, 12, 1, 0, 0, 0, 0) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -109,12 +109,12 @@ if (new Date(1970, 0, 1, 0, 0, 0, 0) === undefined) {
|
|||
}
|
||||
|
||||
var x63 = new Date(1970, 0, 1, 0, 0, 0, 0);
|
||||
if(typeof x63 !== "object"){
|
||||
if (typeof x63 !== "object") {
|
||||
$ERROR("#6.3: typeof new Date(1970, 0, 1, 0, 0, 0, 0) should be 'object'");
|
||||
}
|
||||
|
||||
var x64 = new Date(1970, 0, 1, 0, 0, 0, 0);
|
||||
if(x64 === undefined){
|
||||
if (x64 === undefined) {
|
||||
$ERROR("#6.4: new Date(1970, 0, 1, 0, 0, 0, 0) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -127,12 +127,12 @@ if (new Date(1999, 11, 31, 23, 59, 59, 999) === undefined) {
|
|||
}
|
||||
|
||||
var x73 = new Date(1999, 11, 31, 23, 59, 59, 999);
|
||||
if(typeof x73 !== "object"){
|
||||
if (typeof x73 !== "object") {
|
||||
$ERROR("#7.3: typeof new Date(1999, 11, 31, 23, 59, 59, 999) should be 'object'");
|
||||
}
|
||||
|
||||
var x74 = new Date(1999, 11, 31, 23, 59, 59, 999);
|
||||
if(x74 === undefined){
|
||||
if (x74 === undefined) {
|
||||
$ERROR("#7.4: new Date(1999, 11, 31, 23, 59, 59, 999) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -145,12 +145,12 @@ if (new Date(1999, 12, 1, 0, 0, 0, 0) === undefined) {
|
|||
}
|
||||
|
||||
var x83 = new Date(1999, 12, 1, 0, 0, 0, 0);
|
||||
if(typeof x83 !== "object"){
|
||||
if (typeof x83 !== "object") {
|
||||
$ERROR("#8.3: typeof new Date(1999, 12, 1, 0, 0, 0, 0) should be 'object'");
|
||||
}
|
||||
|
||||
var x84 = new Date(1999, 12, 1, 0, 0, 0, 0);
|
||||
if(x84 === undefined){
|
||||
if (x84 === undefined) {
|
||||
$ERROR("#8.4: new Date(1999, 12, 1, 0, 0, 0, 0) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -163,12 +163,12 @@ if (new Date(2000, 0, 1, 0, 0, 0, 0) === undefined) {
|
|||
}
|
||||
|
||||
var x93 = new Date(2000, 0, 1, 0, 0, 0, 0);
|
||||
if(typeof x93 !== "object"){
|
||||
if (typeof x93 !== "object") {
|
||||
$ERROR("#9.3: typeof new Date(2000, 0, 1, 0, 0, 0, 0) should be 'object'");
|
||||
}
|
||||
|
||||
var x94 = new Date(2000, 0, 1, 0, 0, 0, 0);
|
||||
if(x94 === undefined){
|
||||
if (x94 === undefined) {
|
||||
$ERROR("#9.4: new Date(2000, 0, 1, 0, 0, 0, 0) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -181,12 +181,12 @@ if (new Date(2099, 11, 31, 23, 59, 59, 999) === undefined) {
|
|||
}
|
||||
|
||||
var x103 = new Date(2099, 11, 31, 23, 59, 59, 999);
|
||||
if(typeof x103 !== "object"){
|
||||
if (typeof x103 !== "object") {
|
||||
$ERROR("#10.3: typeof new Date(2099, 11, 31, 23, 59, 59, 999) should be 'object'");
|
||||
}
|
||||
|
||||
var x104 = new Date(2099, 11, 31, 23, 59, 59, 999);
|
||||
if(x104 === undefined){
|
||||
if (x104 === undefined) {
|
||||
$ERROR("#10.4: new Date(2099, 11, 31, 23, 59, 59, 999) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -199,12 +199,12 @@ if (new Date(2099, 12, 1, 0, 0, 0, 0) === undefined) {
|
|||
}
|
||||
|
||||
var x113 = new Date(2099, 12, 1, 0, 0, 0, 0);
|
||||
if(typeof x113 !== "object"){
|
||||
if (typeof x113 !== "object") {
|
||||
$ERROR("#11.3: typeof new Date(2099, 12, 1, 0, 0, 0, 0) should be 'object'");
|
||||
}
|
||||
|
||||
var x114 = new Date(2099, 12, 1, 0, 0, 0, 0);
|
||||
if(x114 === undefined){
|
||||
if (x114 === undefined) {
|
||||
$ERROR("#11.4: new Date(2099, 12, 1, 0, 0, 0, 0) should not be undefined");
|
||||
}
|
||||
|
||||
|
@ -217,11 +217,11 @@ if (new Date(2100, 0, 1, 0, 0, 0, 0) === undefined) {
|
|||
}
|
||||
|
||||
var x123 = new Date(2100, 0, 1, 0, 0, 0, 0);
|
||||
if(typeof x123 !== "object"){
|
||||
if (typeof x123 !== "object") {
|
||||
$ERROR("#12.3: typeof new Date(2100, 0, 1, 0, 0, 0, 0) should be 'object'");
|
||||
}
|
||||
|
||||
var x124 = new Date(2100, 0, 1, 0, 0, 0, 0);
|
||||
if(x124 === undefined){
|
||||
if (x124 === undefined) {
|
||||
$ERROR("#12.4: new Date(2100, 0, 1, 0, 0, 0, 0) should not be undefined");
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ if (!Date.prototype.isPrototypeOf(x12)) {
|
|||
}
|
||||
|
||||
var x13 = new Date(1899, 11);
|
||||
if(Date.prototype !== x13.constructor.prototype){
|
||||
if (Date.prototype !== x13.constructor.prototype) {
|
||||
$ERROR("#1.3: Date.prototype === x13.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -37,7 +37,7 @@ if (!Date.prototype.isPrototypeOf(x22)) {
|
|||
}
|
||||
|
||||
var x23 = new Date(1899, 12);
|
||||
if(Date.prototype !== x23.constructor.prototype){
|
||||
if (Date.prototype !== x23.constructor.prototype) {
|
||||
$ERROR("#2.3: Date.prototype === x23.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -52,7 +52,7 @@ if (!Date.prototype.isPrototypeOf(x32)) {
|
|||
}
|
||||
|
||||
var x33 = new Date(1900, 0);
|
||||
if(Date.prototype !== x33.constructor.prototype){
|
||||
if (Date.prototype !== x33.constructor.prototype) {
|
||||
$ERROR("#3.3: Date.prototype === x33.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -67,7 +67,7 @@ if (!Date.prototype.isPrototypeOf(x42)) {
|
|||
}
|
||||
|
||||
var x43 = new Date(1969, 11);
|
||||
if(Date.prototype !== x43.constructor.prototype){
|
||||
if (Date.prototype !== x43.constructor.prototype) {
|
||||
$ERROR("#4.3: Date.prototype === x43.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -82,7 +82,7 @@ if (!Date.prototype.isPrototypeOf(x52)) {
|
|||
}
|
||||
|
||||
var x53 = new Date(1969, 12);
|
||||
if(Date.prototype !== x53.constructor.prototype){
|
||||
if (Date.prototype !== x53.constructor.prototype) {
|
||||
$ERROR("#5.3: Date.prototype === x53.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -97,7 +97,7 @@ if (!Date.prototype.isPrototypeOf(x62)) {
|
|||
}
|
||||
|
||||
var x63 = new Date(1970, 0);
|
||||
if(Date.prototype !== x63.constructor.prototype){
|
||||
if (Date.prototype !== x63.constructor.prototype) {
|
||||
$ERROR("#6.3: Date.prototype === x63.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -112,7 +112,7 @@ if (!Date.prototype.isPrototypeOf(x72)) {
|
|||
}
|
||||
|
||||
var x73 = new Date(1999, 11);
|
||||
if(Date.prototype !== x73.constructor.prototype){
|
||||
if (Date.prototype !== x73.constructor.prototype) {
|
||||
$ERROR("#7.3: Date.prototype === x73.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -127,7 +127,7 @@ if (!Date.prototype.isPrototypeOf(x82)) {
|
|||
}
|
||||
|
||||
var x83 = new Date(1999, 12);
|
||||
if(Date.prototype !== x83.constructor.prototype){
|
||||
if (Date.prototype !== x83.constructor.prototype) {
|
||||
$ERROR("#8.3: Date.prototype === x83.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -142,7 +142,7 @@ if (!Date.prototype.isPrototypeOf(x92)) {
|
|||
}
|
||||
|
||||
var x93 = new Date(2000, 0);
|
||||
if(Date.prototype !== x93.constructor.prototype){
|
||||
if (Date.prototype !== x93.constructor.prototype) {
|
||||
$ERROR("#9.3: Date.prototype === x93.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -157,7 +157,7 @@ if (!Date.prototype.isPrototypeOf(x102)) {
|
|||
}
|
||||
|
||||
var x103 = new Date(2099, 11);
|
||||
if(Date.prototype !== x103.constructor.prototype){
|
||||
if (Date.prototype !== x103.constructor.prototype) {
|
||||
$ERROR("#10.3: Date.prototype === x103.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -172,7 +172,7 @@ if (!Date.prototype.isPrototypeOf(x112)) {
|
|||
}
|
||||
|
||||
var x113 = new Date(2099, 12);
|
||||
if(Date.prototype !== x113.constructor.prototype){
|
||||
if (Date.prototype !== x113.constructor.prototype) {
|
||||
$ERROR("#11.3: Date.prototype === x113.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -187,6 +187,6 @@ if (!Date.prototype.isPrototypeOf(x122)) {
|
|||
}
|
||||
|
||||
var x123 = new Date(2100, 0);
|
||||
if(Date.prototype !== x123.constructor.prototype){
|
||||
if (Date.prototype !== x123.constructor.prototype) {
|
||||
$ERROR("#12.3: Date.prototype === x123.constructor.prototype");
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ if (!Date.prototype.isPrototypeOf(x12)) {
|
|||
}
|
||||
|
||||
var x13 = new Date(1899, 11, 31);
|
||||
if(Date.prototype !== x13.constructor.prototype){
|
||||
if (Date.prototype !== x13.constructor.prototype) {
|
||||
$ERROR("#1.3: Date.prototype === x13.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -37,7 +37,7 @@ if (!Date.prototype.isPrototypeOf(x22)) {
|
|||
}
|
||||
|
||||
var x23 = new Date(1899, 12, 1);
|
||||
if(Date.prototype !== x23.constructor.prototype){
|
||||
if (Date.prototype !== x23.constructor.prototype) {
|
||||
$ERROR("#2.3: Date.prototype === x23.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -52,7 +52,7 @@ if (!Date.prototype.isPrototypeOf(x32)) {
|
|||
}
|
||||
|
||||
var x33 = new Date(1900, 0, 1);
|
||||
if(Date.prototype !== x33.constructor.prototype){
|
||||
if (Date.prototype !== x33.constructor.prototype) {
|
||||
$ERROR("#3.3: Date.prototype === x33.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -67,7 +67,7 @@ if (!Date.prototype.isPrototypeOf(x42)) {
|
|||
}
|
||||
|
||||
var x43 = new Date(1969, 11, 31);
|
||||
if(Date.prototype !== x43.constructor.prototype){
|
||||
if (Date.prototype !== x43.constructor.prototype) {
|
||||
$ERROR("#4.3: Date.prototype === x43.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -82,7 +82,7 @@ if (!Date.prototype.isPrototypeOf(x52)) {
|
|||
}
|
||||
|
||||
var x53 = new Date(1969, 12, 1);
|
||||
if(Date.prototype !== x53.constructor.prototype){
|
||||
if (Date.prototype !== x53.constructor.prototype) {
|
||||
$ERROR("#5.3: Date.prototype === x53.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -97,7 +97,7 @@ if (!Date.prototype.isPrototypeOf(x62)) {
|
|||
}
|
||||
|
||||
var x63 = new Date(1970, 0, 1);
|
||||
if(Date.prototype !== x63.constructor.prototype){
|
||||
if (Date.prototype !== x63.constructor.prototype) {
|
||||
$ERROR("#6.3: Date.prototype === x63.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -112,7 +112,7 @@ if (!Date.prototype.isPrototypeOf(x72)) {
|
|||
}
|
||||
|
||||
var x73 = new Date(1999, 11, 31);
|
||||
if(Date.prototype !== x73.constructor.prototype){
|
||||
if (Date.prototype !== x73.constructor.prototype) {
|
||||
$ERROR("#7.3: Date.prototype === x73.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -127,7 +127,7 @@ if (!Date.prototype.isPrototypeOf(x82)) {
|
|||
}
|
||||
|
||||
var x83 = new Date(1999, 12, 1);
|
||||
if(Date.prototype !== x83.constructor.prototype){
|
||||
if (Date.prototype !== x83.constructor.prototype) {
|
||||
$ERROR("#8.3: Date.prototype === x83.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -142,7 +142,7 @@ if (!Date.prototype.isPrototypeOf(x92)) {
|
|||
}
|
||||
|
||||
var x93 = new Date(2000, 0, 1);
|
||||
if(Date.prototype !== x93.constructor.prototype){
|
||||
if (Date.prototype !== x93.constructor.prototype) {
|
||||
$ERROR("#9.3: Date.prototype === x93.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -157,7 +157,7 @@ if (!Date.prototype.isPrototypeOf(x102)) {
|
|||
}
|
||||
|
||||
var x103 = new Date(2099, 11, 31);
|
||||
if(Date.prototype !== x103.constructor.prototype){
|
||||
if (Date.prototype !== x103.constructor.prototype) {
|
||||
$ERROR("#10.3: Date.prototype === x103.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -172,7 +172,7 @@ if (!Date.prototype.isPrototypeOf(x112)) {
|
|||
}
|
||||
|
||||
var x113 = new Date(2099, 12, 1);
|
||||
if(Date.prototype !== x113.constructor.prototype){
|
||||
if (Date.prototype !== x113.constructor.prototype) {
|
||||
$ERROR("#11.3: Date.prototype === x113.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -187,6 +187,6 @@ if (!Date.prototype.isPrototypeOf(x122)) {
|
|||
}
|
||||
|
||||
var x123 = new Date(2100, 0, 1);
|
||||
if(Date.prototype !== x123.constructor.prototype){
|
||||
if (Date.prototype !== x123.constructor.prototype) {
|
||||
$ERROR("#12.3: Date.prototype === x123.constructor.prototype");
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ if (!Date.prototype.isPrototypeOf(x12)) {
|
|||
}
|
||||
|
||||
var x13 = new Date(1899, 11, 31, 23);
|
||||
if(Date.prototype !== x13.constructor.prototype){
|
||||
if (Date.prototype !== x13.constructor.prototype) {
|
||||
$ERROR("#1.3: Date.prototype === x13.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -37,7 +37,7 @@ if (!Date.prototype.isPrototypeOf(x22)) {
|
|||
}
|
||||
|
||||
var x23 = new Date(1899, 12, 1, 0);
|
||||
if(Date.prototype !== x23.constructor.prototype){
|
||||
if (Date.prototype !== x23.constructor.prototype) {
|
||||
$ERROR("#2.3: Date.prototype === x23.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -52,7 +52,7 @@ if (!Date.prototype.isPrototypeOf(x32)) {
|
|||
}
|
||||
|
||||
var x33 = new Date(1900, 0, 1, 0);
|
||||
if(Date.prototype !== x33.constructor.prototype){
|
||||
if (Date.prototype !== x33.constructor.prototype) {
|
||||
$ERROR("#3.3: Date.prototype === x33.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -67,7 +67,7 @@ if (!Date.prototype.isPrototypeOf(x42)) {
|
|||
}
|
||||
|
||||
var x43 = new Date(1969, 11, 31, 23);
|
||||
if(Date.prototype !== x43.constructor.prototype){
|
||||
if (Date.prototype !== x43.constructor.prototype) {
|
||||
$ERROR("#4.3: Date.prototype === x43.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -82,7 +82,7 @@ if (!Date.prototype.isPrototypeOf(x52)) {
|
|||
}
|
||||
|
||||
var x53 = new Date(1969, 12, 1, 0);
|
||||
if(Date.prototype !== x53.constructor.prototype){
|
||||
if (Date.prototype !== x53.constructor.prototype) {
|
||||
$ERROR("#5.3: Date.prototype === x53.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -97,7 +97,7 @@ if (!Date.prototype.isPrototypeOf(x62)) {
|
|||
}
|
||||
|
||||
var x63 = new Date(1970, 0, 1, 0);
|
||||
if(Date.prototype !== x63.constructor.prototype){
|
||||
if (Date.prototype !== x63.constructor.prototype) {
|
||||
$ERROR("#6.3: Date.prototype === x63.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -112,7 +112,7 @@ if (!Date.prototype.isPrototypeOf(x72)) {
|
|||
}
|
||||
|
||||
var x73 = new Date(1999, 11, 31, 23);
|
||||
if(Date.prototype !== x73.constructor.prototype){
|
||||
if (Date.prototype !== x73.constructor.prototype) {
|
||||
$ERROR("#7.3: Date.prototype === x73.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -127,7 +127,7 @@ if (!Date.prototype.isPrototypeOf(x82)) {
|
|||
}
|
||||
|
||||
var x83 = new Date(1999, 12, 1, 0);
|
||||
if(Date.prototype !== x83.constructor.prototype){
|
||||
if (Date.prototype !== x83.constructor.prototype) {
|
||||
$ERROR("#8.3: Date.prototype === x83.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -142,7 +142,7 @@ if (!Date.prototype.isPrototypeOf(x92)) {
|
|||
}
|
||||
|
||||
var x93 = new Date(2000, 0, 1, 0);
|
||||
if(Date.prototype !== x93.constructor.prototype){
|
||||
if (Date.prototype !== x93.constructor.prototype) {
|
||||
$ERROR("#9.3: Date.prototype === x93.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -157,7 +157,7 @@ if (!Date.prototype.isPrototypeOf(x102)) {
|
|||
}
|
||||
|
||||
var x103 = new Date(2099, 11, 31, 23);
|
||||
if(Date.prototype !== x103.constructor.prototype){
|
||||
if (Date.prototype !== x103.constructor.prototype) {
|
||||
$ERROR("#10.3: Date.prototype === x103.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -172,7 +172,7 @@ if (!Date.prototype.isPrototypeOf(x112)) {
|
|||
}
|
||||
|
||||
var x113 = new Date(2099, 12, 1, 0);
|
||||
if(Date.prototype !== x113.constructor.prototype){
|
||||
if (Date.prototype !== x113.constructor.prototype) {
|
||||
$ERROR("#11.3: Date.prototype === x113.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -187,6 +187,6 @@ if (!Date.prototype.isPrototypeOf(x122)) {
|
|||
}
|
||||
|
||||
var x123 = new Date(2100, 0, 1, 0);
|
||||
if(Date.prototype !== x123.constructor.prototype){
|
||||
if (Date.prototype !== x123.constructor.prototype) {
|
||||
$ERROR("#12.3: Date.prototype === x123.constructor.prototype");
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ if (!Date.prototype.isPrototypeOf(x12)) {
|
|||
}
|
||||
|
||||
var x13 = new Date(1899, 11, 31, 23, 59);
|
||||
if(Date.prototype !== x13.constructor.prototype){
|
||||
if (Date.prototype !== x13.constructor.prototype) {
|
||||
$ERROR("#1.3: Date.prototype === x13.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -37,7 +37,7 @@ if (!Date.prototype.isPrototypeOf(x22)) {
|
|||
}
|
||||
|
||||
var x23 = new Date(1899, 12, 1, 0, 0);
|
||||
if(Date.prototype !== x23.constructor.prototype){
|
||||
if (Date.prototype !== x23.constructor.prototype) {
|
||||
$ERROR("#2.3: Date.prototype === x23.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -52,7 +52,7 @@ if (!Date.prototype.isPrototypeOf(x32)) {
|
|||
}
|
||||
|
||||
var x33 = new Date(1900, 0, 1, 0, 0);
|
||||
if(Date.prototype !== x33.constructor.prototype){
|
||||
if (Date.prototype !== x33.constructor.prototype) {
|
||||
$ERROR("#3.3: Date.prototype === x33.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -67,7 +67,7 @@ if (!Date.prototype.isPrototypeOf(x42)) {
|
|||
}
|
||||
|
||||
var x43 = new Date(1969, 11, 31, 23, 59);
|
||||
if(Date.prototype !== x43.constructor.prototype){
|
||||
if (Date.prototype !== x43.constructor.prototype) {
|
||||
$ERROR("#4.3: Date.prototype === x43.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -82,7 +82,7 @@ if (!Date.prototype.isPrototypeOf(x52)) {
|
|||
}
|
||||
|
||||
var x53 = new Date(1969, 12, 1, 0, 0);
|
||||
if(Date.prototype !== x53.constructor.prototype){
|
||||
if (Date.prototype !== x53.constructor.prototype) {
|
||||
$ERROR("#5.3: Date.prototype === x53.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -97,7 +97,7 @@ if (!Date.prototype.isPrototypeOf(x62)) {
|
|||
}
|
||||
|
||||
var x63 = new Date(1970, 0, 1, 0, 0);
|
||||
if(Date.prototype !== x63.constructor.prototype){
|
||||
if (Date.prototype !== x63.constructor.prototype) {
|
||||
$ERROR("#6.3: Date.prototype === x63.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -112,7 +112,7 @@ if (!Date.prototype.isPrototypeOf(x72)) {
|
|||
}
|
||||
|
||||
var x73 = new Date(1999, 11, 31, 23, 59);
|
||||
if(Date.prototype !== x73.constructor.prototype){
|
||||
if (Date.prototype !== x73.constructor.prototype) {
|
||||
$ERROR("#7.3: Date.prototype === x73.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -127,7 +127,7 @@ if (!Date.prototype.isPrototypeOf(x82)) {
|
|||
}
|
||||
|
||||
var x83 = new Date(1999, 12, 1, 0, 0);
|
||||
if(Date.prototype !== x83.constructor.prototype){
|
||||
if (Date.prototype !== x83.constructor.prototype) {
|
||||
$ERROR("#8.3: Date.prototype === x83.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -142,7 +142,7 @@ if (!Date.prototype.isPrototypeOf(x92)) {
|
|||
}
|
||||
|
||||
var x93 = new Date(2000, 0, 1, 0, 0);
|
||||
if(Date.prototype !== x93.constructor.prototype){
|
||||
if (Date.prototype !== x93.constructor.prototype) {
|
||||
$ERROR("#9.3: Date.prototype === x93.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -157,7 +157,7 @@ if (!Date.prototype.isPrototypeOf(x102)) {
|
|||
}
|
||||
|
||||
var x103 = new Date(2099, 11, 31, 23, 59);
|
||||
if(Date.prototype !== x103.constructor.prototype){
|
||||
if (Date.prototype !== x103.constructor.prototype) {
|
||||
$ERROR("#10.3: Date.prototype === x103.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -172,7 +172,7 @@ if (!Date.prototype.isPrototypeOf(x112)) {
|
|||
}
|
||||
|
||||
var x113 = new Date(2099, 12, 1, 0, 0);
|
||||
if(Date.prototype !== x113.constructor.prototype){
|
||||
if (Date.prototype !== x113.constructor.prototype) {
|
||||
$ERROR("#11.3: Date.prototype === x113.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -187,6 +187,6 @@ if (!Date.prototype.isPrototypeOf(x122)) {
|
|||
}
|
||||
|
||||
var x123 = new Date(2100, 0, 1, 0, 0);
|
||||
if(Date.prototype !== x123.constructor.prototype){
|
||||
if (Date.prototype !== x123.constructor.prototype) {
|
||||
$ERROR("#12.3: Date.prototype === x123.constructor.prototype");
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ if (!Date.prototype.isPrototypeOf(x12)) {
|
|||
}
|
||||
|
||||
var x13 = new Date(1899, 11, 31, 23, 59, 59);
|
||||
if(Date.prototype !== x13.constructor.prototype){
|
||||
if (Date.prototype !== x13.constructor.prototype) {
|
||||
$ERROR("#1.3: Date.prototype === x13.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -37,7 +37,7 @@ if (!Date.prototype.isPrototypeOf(x22)) {
|
|||
}
|
||||
|
||||
var x23 = new Date(1899, 12, 1, 0, 0, 0);
|
||||
if(Date.prototype !== x23.constructor.prototype){
|
||||
if (Date.prototype !== x23.constructor.prototype) {
|
||||
$ERROR("#2.3: Date.prototype === x23.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -52,7 +52,7 @@ if (!Date.prototype.isPrototypeOf(x32)) {
|
|||
}
|
||||
|
||||
var x33 = new Date(1900, 0, 1, 0, 0, 0);
|
||||
if(Date.prototype !== x33.constructor.prototype){
|
||||
if (Date.prototype !== x33.constructor.prototype) {
|
||||
$ERROR("#3.3: Date.prototype === x33.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -67,7 +67,7 @@ if (!Date.prototype.isPrototypeOf(x42)) {
|
|||
}
|
||||
|
||||
var x43 = new Date(1969, 11, 31, 23, 59, 59);
|
||||
if(Date.prototype !== x43.constructor.prototype){
|
||||
if (Date.prototype !== x43.constructor.prototype) {
|
||||
$ERROR("#4.3: Date.prototype === x43.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -82,7 +82,7 @@ if (!Date.prototype.isPrototypeOf(x52)) {
|
|||
}
|
||||
|
||||
var x53 = new Date(1969, 12, 1, 0, 0, 0);
|
||||
if(Date.prototype !== x53.constructor.prototype){
|
||||
if (Date.prototype !== x53.constructor.prototype) {
|
||||
$ERROR("#5.3: Date.prototype === x53.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -97,7 +97,7 @@ if (!Date.prototype.isPrototypeOf(x62)) {
|
|||
}
|
||||
|
||||
var x63 = new Date(1970, 0, 1, 0, 0, 0);
|
||||
if(Date.prototype !== x63.constructor.prototype){
|
||||
if (Date.prototype !== x63.constructor.prototype) {
|
||||
$ERROR("#6.3: Date.prototype === x63.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -112,7 +112,7 @@ if (!Date.prototype.isPrototypeOf(x72)) {
|
|||
}
|
||||
|
||||
var x73 = new Date(1999, 11, 31, 23, 59, 59);
|
||||
if(Date.prototype !== x73.constructor.prototype){
|
||||
if (Date.prototype !== x73.constructor.prototype) {
|
||||
$ERROR("#7.3: Date.prototype === x73.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -127,7 +127,7 @@ if (!Date.prototype.isPrototypeOf(x82)) {
|
|||
}
|
||||
|
||||
var x83 = new Date(1999, 12, 1, 0, 0, 0);
|
||||
if(Date.prototype !== x83.constructor.prototype){
|
||||
if (Date.prototype !== x83.constructor.prototype) {
|
||||
$ERROR("#8.3: Date.prototype === x83.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -142,7 +142,7 @@ if (!Date.prototype.isPrototypeOf(x92)) {
|
|||
}
|
||||
|
||||
var x93 = new Date(2000, 0, 1, 0, 0, 0);
|
||||
if(Date.prototype !== x93.constructor.prototype){
|
||||
if (Date.prototype !== x93.constructor.prototype) {
|
||||
$ERROR("#9.3: Date.prototype === x93.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -157,7 +157,7 @@ if (!Date.prototype.isPrototypeOf(x102)) {
|
|||
}
|
||||
|
||||
var x103 = new Date(2099, 11, 31, 23, 59, 59);
|
||||
if(Date.prototype !== x103.constructor.prototype){
|
||||
if (Date.prototype !== x103.constructor.prototype) {
|
||||
$ERROR("#10.3: Date.prototype === x103.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -172,7 +172,7 @@ if (!Date.prototype.isPrototypeOf(x112)) {
|
|||
}
|
||||
|
||||
var x113 = new Date(2099, 12, 1, 0, 0, 0);
|
||||
if(Date.prototype !== x113.constructor.prototype){
|
||||
if (Date.prototype !== x113.constructor.prototype) {
|
||||
$ERROR("#11.3: Date.prototype === x113.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -187,6 +187,6 @@ if (!Date.prototype.isPrototypeOf(x122)) {
|
|||
}
|
||||
|
||||
var x123 = new Date(2100, 0, 1, 0, 0, 0);
|
||||
if(Date.prototype !== x123.constructor.prototype){
|
||||
if (Date.prototype !== x123.constructor.prototype) {
|
||||
$ERROR("#12.3: Date.prototype === x123.constructor.prototype");
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ if (!Date.prototype.isPrototypeOf(x12)) {
|
|||
}
|
||||
|
||||
var x13 = new Date(1899, 11, 31, 23, 59, 59, 999);
|
||||
if(Date.prototype !== x13.constructor.prototype){
|
||||
if (Date.prototype !== x13.constructor.prototype) {
|
||||
$ERROR("#1.3: Date.prototype === x13.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -37,7 +37,7 @@ if (!Date.prototype.isPrototypeOf(x22)) {
|
|||
}
|
||||
|
||||
var x23 = new Date(1899, 12, 1, 0, 0, 0, 0);
|
||||
if(Date.prototype !== x23.constructor.prototype){
|
||||
if (Date.prototype !== x23.constructor.prototype) {
|
||||
$ERROR("#2.3: Date.prototype === x23.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -52,7 +52,7 @@ if (!Date.prototype.isPrototypeOf(x32)) {
|
|||
}
|
||||
|
||||
var x33 = new Date(1900, 0, 1, 0, 0, 0, 0);
|
||||
if(Date.prototype !== x33.constructor.prototype){
|
||||
if (Date.prototype !== x33.constructor.prototype) {
|
||||
$ERROR("#3.3: Date.prototype === x33.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -67,7 +67,7 @@ if (!Date.prototype.isPrototypeOf(x42)) {
|
|||
}
|
||||
|
||||
var x43 = new Date(1969, 11, 31, 23, 59, 59, 999);
|
||||
if(Date.prototype !== x43.constructor.prototype){
|
||||
if (Date.prototype !== x43.constructor.prototype) {
|
||||
$ERROR("#4.3: Date.prototype === x43.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -82,7 +82,7 @@ if (!Date.prototype.isPrototypeOf(x52)) {
|
|||
}
|
||||
|
||||
var x53 = new Date(1969, 12, 1, 0, 0, 0, 0);
|
||||
if(Date.prototype !== x53.constructor.prototype){
|
||||
if (Date.prototype !== x53.constructor.prototype) {
|
||||
$ERROR("#5.3: Date.prototype === x53.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -97,7 +97,7 @@ if (!Date.prototype.isPrototypeOf(x62)) {
|
|||
}
|
||||
|
||||
var x63 = new Date(1970, 0, 1, 0, 0, 0, 0);
|
||||
if(Date.prototype !== x63.constructor.prototype){
|
||||
if (Date.prototype !== x63.constructor.prototype) {
|
||||
$ERROR("#6.3: Date.prototype === x63.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -112,7 +112,7 @@ if (!Date.prototype.isPrototypeOf(x72)) {
|
|||
}
|
||||
|
||||
var x73 = new Date(1999, 11, 31, 23, 59, 59, 999);
|
||||
if(Date.prototype !== x73.constructor.prototype){
|
||||
if (Date.prototype !== x73.constructor.prototype) {
|
||||
$ERROR("#7.3: Date.prototype === x73.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -127,7 +127,7 @@ if (!Date.prototype.isPrototypeOf(x82)) {
|
|||
}
|
||||
|
||||
var x83 = new Date(1999, 12, 1, 0, 0, 0, 0);
|
||||
if(Date.prototype !== x83.constructor.prototype){
|
||||
if (Date.prototype !== x83.constructor.prototype) {
|
||||
$ERROR("#8.3: Date.prototype === x83.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -142,7 +142,7 @@ if (!Date.prototype.isPrototypeOf(x92)) {
|
|||
}
|
||||
|
||||
var x93 = new Date(2000, 0, 1, 0, 0, 0, 0);
|
||||
if(Date.prototype !== x93.constructor.prototype){
|
||||
if (Date.prototype !== x93.constructor.prototype) {
|
||||
$ERROR("#9.3: Date.prototype === x93.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -157,7 +157,7 @@ if (!Date.prototype.isPrototypeOf(x102)) {
|
|||
}
|
||||
|
||||
var x103 = new Date(2099, 11, 31, 23, 59, 59, 999);
|
||||
if(Date.prototype !== x103.constructor.prototype){
|
||||
if (Date.prototype !== x103.constructor.prototype) {
|
||||
$ERROR("#10.3: Date.prototype === x103.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -172,7 +172,7 @@ if (!Date.prototype.isPrototypeOf(x112)) {
|
|||
}
|
||||
|
||||
var x113 = new Date(2099, 12, 1, 0, 0, 0, 0);
|
||||
if(Date.prototype !== x113.constructor.prototype){
|
||||
if (Date.prototype !== x113.constructor.prototype) {
|
||||
$ERROR("#11.3: Date.prototype === x113.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -187,6 +187,6 @@ if (!Date.prototype.isPrototypeOf(x122)) {
|
|||
}
|
||||
|
||||
var x123 = new Date(2100, 0, 1, 0, 0, 0, 0);
|
||||
if(Date.prototype !== x123.constructor.prototype){
|
||||
if (Date.prototype !== x123.constructor.prototype) {
|
||||
$ERROR("#12.3: Date.prototype === x123.constructor.prototype");
|
||||
}
|
||||
|
|
|
@ -17,30 +17,34 @@ es5id: 15.9.3.1_A4_T1
|
|||
description: 2 arguments, (year, month)
|
||||
---*/
|
||||
|
||||
var myObj = function(val){
|
||||
var myObj = function(val) {
|
||||
this.value = val;
|
||||
this.valueOf = function(){throw "valueOf-"+this.value;};
|
||||
this.toString = function(){throw "toString-"+this.value;};
|
||||
this.valueOf = function() {
|
||||
throw "valueOf-" + this.value;
|
||||
};
|
||||
this.toString = function() {
|
||||
throw "toString-" + this.value;
|
||||
};
|
||||
};
|
||||
|
||||
//CHECK#1
|
||||
try{
|
||||
try {
|
||||
var x1 = new Date(new myObj(1), new myObj(2));
|
||||
$ERROR("#1: The 1st step is calling ToNumber(year)");
|
||||
}
|
||||
catch(e){
|
||||
if(e !== "valueOf-1"){
|
||||
catch (e) {
|
||||
if (e !== "valueOf-1") {
|
||||
$ERROR("#1: The 1st step is calling ToNumber(year)");
|
||||
}
|
||||
}
|
||||
|
||||
//CHECK#2
|
||||
try{
|
||||
try {
|
||||
var x2 = new Date(1, new myObj(2));
|
||||
$ERROR("#2: The 2nd step is calling ToNumber(month)");
|
||||
}
|
||||
catch(e){
|
||||
if(e !== "valueOf-2"){
|
||||
catch (e) {
|
||||
if (e !== "valueOf-2") {
|
||||
$ERROR("#2: The 2nd step is calling ToNumber(month)");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,41 +17,45 @@ es5id: 15.9.3.1_A4_T2
|
|||
description: 3 arguments, (year, month, date)
|
||||
---*/
|
||||
|
||||
var myObj = function(val){
|
||||
var myObj = function(val) {
|
||||
this.value = val;
|
||||
this.valueOf = function(){throw "valueOf-"+this.value;};
|
||||
this.toString = function(){throw "toString-"+this.value;};
|
||||
this.valueOf = function() {
|
||||
throw "valueOf-" + this.value;
|
||||
};
|
||||
this.toString = function() {
|
||||
throw "toString-" + this.value;
|
||||
};
|
||||
};
|
||||
|
||||
//CHECK#1
|
||||
try{
|
||||
try {
|
||||
var x1 = new Date(new myObj(1), new myObj(2), new myObj(3));
|
||||
$ERROR("#1: The 1st step is calling ToNumber(year)");
|
||||
}
|
||||
catch(e){
|
||||
if(e !== "valueOf-1"){
|
||||
catch (e) {
|
||||
if (e !== "valueOf-1") {
|
||||
$ERROR("#1: The 1st step is calling ToNumber(year)");
|
||||
}
|
||||
}
|
||||
|
||||
//CHECK#2
|
||||
try{
|
||||
try {
|
||||
var x2 = new Date(1, new myObj(2), new myObj(3));
|
||||
$ERROR("#2: The 2nd step is calling ToNumber(month)");
|
||||
}
|
||||
catch(e){
|
||||
if(e !== "valueOf-2"){
|
||||
catch (e) {
|
||||
if (e !== "valueOf-2") {
|
||||
$ERROR("#2: The 2nd step is calling ToNumber(month)");
|
||||
}
|
||||
}
|
||||
|
||||
//CHECK#3
|
||||
try{
|
||||
try {
|
||||
var x3 = new Date(1, 2, new myObj(3));
|
||||
$ERROR("#3: The 3rd step is calling ToNumber(date)");
|
||||
}
|
||||
catch(e){
|
||||
if(e !== "valueOf-3"){
|
||||
catch (e) {
|
||||
if (e !== "valueOf-3") {
|
||||
$ERROR("#3: The 3rd step is calling ToNumber(date)");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,52 +17,56 @@ es5id: 15.9.3.1_A4_T3
|
|||
description: 4 arguments, (year, month, date, hours)
|
||||
---*/
|
||||
|
||||
var myObj = function(val){
|
||||
var myObj = function(val) {
|
||||
this.value = val;
|
||||
this.valueOf = function(){throw "valueOf-"+this.value;};
|
||||
this.toString = function(){throw "toString-"+this.value;};
|
||||
this.valueOf = function() {
|
||||
throw "valueOf-" + this.value;
|
||||
};
|
||||
this.toString = function() {
|
||||
throw "toString-" + this.value;
|
||||
};
|
||||
};
|
||||
|
||||
//CHECK#1
|
||||
try{
|
||||
try {
|
||||
var x1 = new Date(new myObj(1), new myObj(2), new myObj(3), new myObj(4));
|
||||
$ERROR("#1: The 1st step is calling ToNumber(year)");
|
||||
}
|
||||
catch(e){
|
||||
if(e !== "valueOf-1"){
|
||||
catch (e) {
|
||||
if (e !== "valueOf-1") {
|
||||
$ERROR("#1: The 1st step is calling ToNumber(year)");
|
||||
}
|
||||
}
|
||||
|
||||
//CHECK#2
|
||||
try{
|
||||
try {
|
||||
var x2 = new Date(1, new myObj(2), new myObj(3), new myObj(4));
|
||||
$ERROR("#2: The 2nd step is calling ToNumber(month)");
|
||||
}
|
||||
catch(e){
|
||||
if(e !== "valueOf-2"){
|
||||
catch (e) {
|
||||
if (e !== "valueOf-2") {
|
||||
$ERROR("#2: The 2nd step is calling ToNumber(month)");
|
||||
}
|
||||
}
|
||||
|
||||
//CHECK#3
|
||||
try{
|
||||
try {
|
||||
var x3 = new Date(1, 2, new myObj(3), new myObj(4));
|
||||
$ERROR("#3: The 3rd step is calling ToNumber(date)");
|
||||
}
|
||||
catch(e){
|
||||
if(e !== "valueOf-3"){
|
||||
catch (e) {
|
||||
if (e !== "valueOf-3") {
|
||||
$ERROR("#3: The 3rd step is calling ToNumber(date)");
|
||||
}
|
||||
}
|
||||
|
||||
//CHECK#4
|
||||
try{
|
||||
try {
|
||||
var x4 = new Date(1, 2, 3, new myObj(4));
|
||||
$ERROR("#4: The 4th step is calling ToNumber(hours)");
|
||||
}
|
||||
catch(e){
|
||||
if(e !== "valueOf-4"){
|
||||
catch (e) {
|
||||
if (e !== "valueOf-4") {
|
||||
$ERROR("#4: The 4th step is calling ToNumber(hours)");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,63 +17,67 @@ es5id: 15.9.3.1_A4_T4
|
|||
description: 5 arguments, (year, month, date, hours, minutes)
|
||||
---*/
|
||||
|
||||
var myObj = function(val){
|
||||
var myObj = function(val) {
|
||||
this.value = val;
|
||||
this.valueOf = function(){throw "valueOf-"+this.value;};
|
||||
this.toString = function(){throw "toString-"+this.value;};
|
||||
this.valueOf = function() {
|
||||
throw "valueOf-" + this.value;
|
||||
};
|
||||
this.toString = function() {
|
||||
throw "toString-" + this.value;
|
||||
};
|
||||
};
|
||||
|
||||
//CHECK#1
|
||||
try{
|
||||
try {
|
||||
var x1 = new Date(new myObj(1), new myObj(2), new myObj(3), new myObj(4), new myObj(5));
|
||||
$ERROR("#1: The 1st step is calling ToNumber(year)");
|
||||
}
|
||||
catch(e){
|
||||
if(e !== "valueOf-1"){
|
||||
catch (e) {
|
||||
if (e !== "valueOf-1") {
|
||||
$ERROR("#1: The 1st step is calling ToNumber(year)");
|
||||
}
|
||||
}
|
||||
|
||||
//CHECK#2
|
||||
try{
|
||||
try {
|
||||
var x2 = new Date(1, new myObj(2), new myObj(3), new myObj(4), new myObj(5));
|
||||
$ERROR("#2: The 2nd step is calling ToNumber(month)");
|
||||
}
|
||||
catch(e){
|
||||
if(e !== "valueOf-2"){
|
||||
catch (e) {
|
||||
if (e !== "valueOf-2") {
|
||||
$ERROR("#2: The 2nd step is calling ToNumber(month)");
|
||||
}
|
||||
}
|
||||
|
||||
//CHECK#3
|
||||
try{
|
||||
try {
|
||||
var x3 = new Date(1, 2, new myObj(3), new myObj(4), new myObj(5));
|
||||
$ERROR("#3: The 3rd step is calling ToNumber(date)");
|
||||
}
|
||||
catch(e){
|
||||
if(e !== "valueOf-3"){
|
||||
catch (e) {
|
||||
if (e !== "valueOf-3") {
|
||||
$ERROR("#3: The 3rd step is calling ToNumber(date)");
|
||||
}
|
||||
}
|
||||
|
||||
//CHECK#4
|
||||
try{
|
||||
try {
|
||||
var x4 = new Date(1, 2, 3, new myObj(4), new myObj(5));
|
||||
$ERROR("#4: The 4th step is calling ToNumber(hours)");
|
||||
}
|
||||
catch(e){
|
||||
if(e !== "valueOf-4"){
|
||||
catch (e) {
|
||||
if (e !== "valueOf-4") {
|
||||
$ERROR("#4: The 4th step is calling ToNumber(hours)");
|
||||
}
|
||||
}
|
||||
|
||||
//CHECK#5
|
||||
try{
|
||||
try {
|
||||
var x5 = new Date(1, 2, 3, 4, new myObj(5));
|
||||
$ERROR("#5: The 5th step is calling ToNumber(minutes)");
|
||||
}
|
||||
catch(e){
|
||||
if(e !== "valueOf-5"){
|
||||
catch (e) {
|
||||
if (e !== "valueOf-5") {
|
||||
$ERROR("#5: The 5th step is calling ToNumber(minutes)");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,74 +17,78 @@ es5id: 15.9.3.1_A4_T5
|
|||
description: 6 arguments, (year, month, date, hours, minutes, seconds)
|
||||
---*/
|
||||
|
||||
var myObj = function(val){
|
||||
var myObj = function(val) {
|
||||
this.value = val;
|
||||
this.valueOf = function(){throw "valueOf-"+this.value;};
|
||||
this.toString = function(){throw "toString-"+this.value;};
|
||||
this.valueOf = function() {
|
||||
throw "valueOf-" + this.value;
|
||||
};
|
||||
this.toString = function() {
|
||||
throw "toString-" + this.value;
|
||||
};
|
||||
};
|
||||
|
||||
//CHECK#1
|
||||
try{
|
||||
try {
|
||||
var x1 = new Date(new myObj(1), new myObj(2), new myObj(3), new myObj(4), new myObj(5), new myObj(6));
|
||||
$ERROR("#1: The 1st step is calling ToNumber(year)");
|
||||
}
|
||||
catch(e){
|
||||
if(e !== "valueOf-1"){
|
||||
catch (e) {
|
||||
if (e !== "valueOf-1") {
|
||||
$ERROR("#1: The 1st step is calling ToNumber(year)");
|
||||
}
|
||||
}
|
||||
|
||||
//CHECK#2
|
||||
try{
|
||||
try {
|
||||
var x2 = new Date(1, new myObj(2), new myObj(3), new myObj(4), new myObj(5), new myObj(6));
|
||||
$ERROR("#2: The 2nd step is calling ToNumber(month)");
|
||||
}
|
||||
catch(e){
|
||||
if(e !== "valueOf-2"){
|
||||
catch (e) {
|
||||
if (e !== "valueOf-2") {
|
||||
$ERROR("#2: The 2nd step is calling ToNumber(month)");
|
||||
}
|
||||
}
|
||||
|
||||
//CHECK#3
|
||||
try{
|
||||
try {
|
||||
var x3 = new Date(1, 2, new myObj(3), new myObj(4), new myObj(5), new myObj(6));
|
||||
$ERROR("#3: The 3rd step is calling ToNumber(date)");
|
||||
}
|
||||
catch(e){
|
||||
if(e !== "valueOf-3"){
|
||||
catch (e) {
|
||||
if (e !== "valueOf-3") {
|
||||
$ERROR("#3: The 3rd step is calling ToNumber(date)");
|
||||
}
|
||||
}
|
||||
|
||||
//CHECK#4
|
||||
try{
|
||||
try {
|
||||
var x4 = new Date(1, 2, 3, new myObj(4), new myObj(5), new myObj(6));
|
||||
$ERROR("#4: The 4th step is calling ToNumber(hours)");
|
||||
}
|
||||
catch(e){
|
||||
if(e !== "valueOf-4"){
|
||||
catch (e) {
|
||||
if (e !== "valueOf-4") {
|
||||
$ERROR("#4: The 4th step is calling ToNumber(hours)");
|
||||
}
|
||||
}
|
||||
|
||||
//CHECK#5
|
||||
try{
|
||||
try {
|
||||
var x5 = new Date(1, 2, 3, 4, new myObj(5), new myObj(6));
|
||||
$ERROR("#5: The 5th step is calling ToNumber(minutes)");
|
||||
}
|
||||
catch(e){
|
||||
if(e !== "valueOf-5"){
|
||||
catch (e) {
|
||||
if (e !== "valueOf-5") {
|
||||
$ERROR("#5: The 5th step is calling ToNumber(minutes)");
|
||||
}
|
||||
}
|
||||
|
||||
//CHECK#6
|
||||
try{
|
||||
try {
|
||||
var x6 = new Date(1, 2, 3, 4, 5, new myObj(6));
|
||||
$ERROR("#6: The 6th step is calling ToNumber(seconds)");
|
||||
}
|
||||
catch(e){
|
||||
if(e !== "valueOf-6"){
|
||||
catch (e) {
|
||||
if (e !== "valueOf-6") {
|
||||
$ERROR("#6: The 6th step is calling ToNumber(seconds)");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,85 +17,89 @@ es5id: 15.9.3.1_A4_T6
|
|||
description: 7 arguments, (year, month, date, hours, minutes, seconds, ms)
|
||||
---*/
|
||||
|
||||
var myObj = function(val){
|
||||
var myObj = function(val) {
|
||||
this.value = val;
|
||||
this.valueOf = function(){throw "valueOf-"+this.value;};
|
||||
this.toString = function(){throw "toString-"+this.value;};
|
||||
this.valueOf = function() {
|
||||
throw "valueOf-" + this.value;
|
||||
};
|
||||
this.toString = function() {
|
||||
throw "toString-" + this.value;
|
||||
};
|
||||
};
|
||||
|
||||
//CHECK#1
|
||||
try{
|
||||
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));
|
||||
$ERROR("#1: The 1st step is calling ToNumber(year)");
|
||||
}
|
||||
catch(e){
|
||||
if(e !== "valueOf-1"){
|
||||
catch (e) {
|
||||
if (e !== "valueOf-1") {
|
||||
$ERROR("#1: The 1st step is calling ToNumber(year)");
|
||||
}
|
||||
}
|
||||
|
||||
//CHECK#2
|
||||
try{
|
||||
try {
|
||||
var x2 = new Date(1, new myObj(2), new myObj(3), new myObj(4), new myObj(5), new myObj(6), new myObj(7));
|
||||
$ERROR("#2: The 2nd step is calling ToNumber(month)");
|
||||
}
|
||||
catch(e){
|
||||
if(e !== "valueOf-2"){
|
||||
catch (e) {
|
||||
if (e !== "valueOf-2") {
|
||||
$ERROR("#2: The 2nd step is calling ToNumber(month)");
|
||||
}
|
||||
}
|
||||
|
||||
//CHECK#3
|
||||
try{
|
||||
try {
|
||||
var x3 = new Date(1, 2, new myObj(3), new myObj(4), new myObj(5), new myObj(6), new myObj(7));
|
||||
$ERROR("#3: The 3rd step is calling ToNumber(date)");
|
||||
}
|
||||
catch(e){
|
||||
if(e !== "valueOf-3"){
|
||||
catch (e) {
|
||||
if (e !== "valueOf-3") {
|
||||
$ERROR("#3: The 3rd step is calling ToNumber(date)");
|
||||
}
|
||||
}
|
||||
|
||||
//CHECK#4
|
||||
try{
|
||||
try {
|
||||
var x4 = new Date(1, 2, 3, new myObj(4), new myObj(5), new myObj(6), new myObj(7));
|
||||
$ERROR("#4: The 4th step is calling ToNumber(hours)");
|
||||
}
|
||||
catch(e){
|
||||
if(e !== "valueOf-4"){
|
||||
catch (e) {
|
||||
if (e !== "valueOf-4") {
|
||||
$ERROR("#4: The 4th step is calling ToNumber(hours)");
|
||||
}
|
||||
}
|
||||
|
||||
//CHECK#5
|
||||
try{
|
||||
try {
|
||||
var x5 = new Date(1, 2, 3, 4, new myObj(5), new myObj(6), new myObj(7));
|
||||
$ERROR("#5: The 5th step is calling ToNumber(minutes)");
|
||||
}
|
||||
catch(e){
|
||||
if(e !== "valueOf-5"){
|
||||
catch (e) {
|
||||
if (e !== "valueOf-5") {
|
||||
$ERROR("#5: The 5th step is calling ToNumber(minutes)");
|
||||
}
|
||||
}
|
||||
|
||||
//CHECK#6
|
||||
try{
|
||||
try {
|
||||
var x6 = new Date(1, 2, 3, 4, 5, new myObj(6), new myObj(7));
|
||||
$ERROR("#6: The 6th step is calling ToNumber(seconds)");
|
||||
}
|
||||
catch(e){
|
||||
if(e !== "valueOf-6"){
|
||||
catch (e) {
|
||||
if (e !== "valueOf-6") {
|
||||
$ERROR("#6: The 6th step is calling ToNumber(seconds)");
|
||||
}
|
||||
}
|
||||
|
||||
//CHECK#7
|
||||
try{
|
||||
try {
|
||||
var x7 = new Date(1, 2, 3, 4, 5, 6, new myObj(7));
|
||||
$ERROR("#7: The 7th step is calling ToNumber(ms)");
|
||||
}
|
||||
catch(e){
|
||||
if(e !== "valueOf-7"){
|
||||
catch (e) {
|
||||
if (e !== "valueOf-7") {
|
||||
$ERROR("#7: The 7th step is calling ToNumber(ms)");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -33,7 +33,7 @@ assertRelativeDateMs(new Date(1999, 11), 944006400000);
|
|||
|
||||
assertRelativeDateMs(new Date(1999, 12), 946684800000);
|
||||
|
||||
assertRelativeDateMs(new Date(2000, 0), 946684800000);
|
||||
assertRelativeDateMs(new Date(2000, 0), 946684800000);
|
||||
|
||||
assertRelativeDateMs(new Date(2099, 11), 4099766400000);
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ es5id: 15.9.3.1_A6_T1
|
|||
description: 2 arguments, (year, month)
|
||||
---*/
|
||||
|
||||
function DateValue(year, month, date, hours, minutes, seconds, ms){
|
||||
function DateValue(year, month, date, hours, minutes, seconds, ms) {
|
||||
return new Date(year, month, date, hours, minutes, seconds, ms).valueOf();
|
||||
}
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ es5id: 15.9.3.1_A6_T2
|
|||
description: 3 arguments, (year, month, date)
|
||||
---*/
|
||||
|
||||
function DateValue(year, month, date, hours, minutes, seconds, ms){
|
||||
function DateValue(year, month, date, hours, minutes, seconds, ms) {
|
||||
return new Date(year, month, date, hours, minutes, seconds, ms).valueOf();
|
||||
}
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ es5id: 15.9.3.1_A6_T3
|
|||
description: 4 arguments, (year, month, date, hours)
|
||||
---*/
|
||||
|
||||
function DateValue(year, month, date, hours, minutes, seconds, ms){
|
||||
function DateValue(year, month, date, hours, minutes, seconds, ms) {
|
||||
return new Date(year, month, date, hours, minutes, seconds, ms).valueOf();
|
||||
}
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ es5id: 15.9.3.1_A6_T4
|
|||
description: 5 arguments, (year, month, date, hours, minutes)
|
||||
---*/
|
||||
|
||||
function DateValue(year, month, date, hours, minutes, seconds, ms){
|
||||
function DateValue(year, month, date, hours, minutes, seconds, ms) {
|
||||
return new Date(year, month, date, hours, minutes, seconds, ms).valueOf();
|
||||
}
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ es5id: 15.9.3.1_A6_T5
|
|||
description: 6 arguments, (year, month, date, hours, minutes, seconds)
|
||||
---*/
|
||||
|
||||
function DateValue(year, month, date, hours, minutes, seconds, ms){
|
||||
function DateValue(year, month, date, hours, minutes, seconds, ms) {
|
||||
return new Date(year, month, date, hours, minutes, seconds, ms).valueOf();
|
||||
}
|
||||
|
||||
|
|
|
@ -20,12 +20,12 @@ if (new Date(date_1899_end) === undefined) {
|
|||
}
|
||||
|
||||
var x13 = new Date(date_1899_end);
|
||||
if(typeof x13 !== "object"){
|
||||
if (typeof x13 !== "object") {
|
||||
$ERROR("#1.3: typeof new Date(date_1899_end) !== 'object'");
|
||||
}
|
||||
|
||||
var x14 = new Date(date_1899_end);
|
||||
if(x14 === undefined){
|
||||
if (x14 === undefined) {
|
||||
$ERROR("#1.4: new Date(date_1899_end) !== undefined");
|
||||
}
|
||||
|
||||
|
@ -38,12 +38,12 @@ if (new Date(date_1900_start) === undefined) {
|
|||
}
|
||||
|
||||
var x23 = new Date(date_1900_start);
|
||||
if(typeof x23 !== "object"){
|
||||
if (typeof x23 !== "object") {
|
||||
$ERROR("#2.3: typeof new Date(date_1900_start) !== 'object'");
|
||||
}
|
||||
|
||||
var x24 = new Date(date_1900_start);
|
||||
if(x24 === undefined){
|
||||
if (x24 === undefined) {
|
||||
$ERROR("#2.4: new Date(date_1900_start) !== undefined");
|
||||
}
|
||||
|
||||
|
@ -56,12 +56,12 @@ if (new Date(date_1969_end) === undefined) {
|
|||
}
|
||||
|
||||
var x33 = new Date(date_1969_end);
|
||||
if(typeof x33 !== "object"){
|
||||
if (typeof x33 !== "object") {
|
||||
$ERROR("#3.3: typeof new Date(date_1969_end) !== 'object'");
|
||||
}
|
||||
|
||||
var x34 = new Date(date_1969_end);
|
||||
if(x34 === undefined){
|
||||
if (x34 === undefined) {
|
||||
$ERROR("#3.4: new Date(date_1969_end) !== undefined");
|
||||
}
|
||||
|
||||
|
@ -74,12 +74,12 @@ if (new Date(date_1970_start) === undefined) {
|
|||
}
|
||||
|
||||
var x43 = new Date(date_1970_start);
|
||||
if(typeof x43 !== "object"){
|
||||
if (typeof x43 !== "object") {
|
||||
$ERROR("#4.3: typeof new Date(date_1970_start) !== 'object'");
|
||||
}
|
||||
|
||||
var x44 = new Date(date_1970_start);
|
||||
if(x44 === undefined){
|
||||
if (x44 === undefined) {
|
||||
$ERROR("#4.4: new Date(date_1970_start) !== undefined");
|
||||
}
|
||||
|
||||
|
@ -92,12 +92,12 @@ if (new Date(date_1999_end) === undefined) {
|
|||
}
|
||||
|
||||
var x53 = new Date(date_1999_end);
|
||||
if(typeof x53 !== "object"){
|
||||
if (typeof x53 !== "object") {
|
||||
$ERROR("#5.3: typeof new Date(date_1999_end) !== 'object'");
|
||||
}
|
||||
|
||||
var x54 = new Date(date_1999_end);
|
||||
if(x54 === undefined){
|
||||
if (x54 === undefined) {
|
||||
$ERROR("#5.4: new Date(date_1999_end) !== undefined");
|
||||
}
|
||||
|
||||
|
@ -110,12 +110,12 @@ if (new Date(date_2000_start) === undefined) {
|
|||
}
|
||||
|
||||
var x63 = new Date(date_2000_start);
|
||||
if(typeof x63 !== "object"){
|
||||
if (typeof x63 !== "object") {
|
||||
$ERROR("#6.3: typeof new Date(date_2000_start) !== 'object'");
|
||||
}
|
||||
|
||||
var x64 = new Date(date_2000_start);
|
||||
if(x64 === undefined){
|
||||
if (x64 === undefined) {
|
||||
$ERROR("#6.4: new Date(date_2000_start) !== undefined");
|
||||
}
|
||||
|
||||
|
@ -128,12 +128,12 @@ if (new Date(date_2099_end) === undefined) {
|
|||
}
|
||||
|
||||
var x73 = new Date(date_2099_end);
|
||||
if(typeof x73 !== "object"){
|
||||
if (typeof x73 !== "object") {
|
||||
$ERROR("#7.3: typeof new Date(date_2099_end) !== 'object'");
|
||||
}
|
||||
|
||||
var x74 = new Date(date_2099_end);
|
||||
if(x74 === undefined){
|
||||
if (x74 === undefined) {
|
||||
$ERROR("#7.4: new Date(date_2099_end) !== undefined");
|
||||
}
|
||||
|
||||
|
@ -146,11 +146,11 @@ if (new Date(date_2100_start) === undefined) {
|
|||
}
|
||||
|
||||
var x83 = new Date(date_2100_start);
|
||||
if(typeof x83 !== "object"){
|
||||
if (typeof x83 !== "object") {
|
||||
$ERROR("#8.3: typeof new Date(date_2100_start) !== 'object'");
|
||||
}
|
||||
|
||||
var x84 = new Date(date_2100_start);
|
||||
if(x84 === undefined){
|
||||
if (x84 === undefined) {
|
||||
$ERROR("#8.4: new Date(date_2100_start) !== undefined");
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ if (!Date.prototype.isPrototypeOf(x12)) {
|
|||
}
|
||||
|
||||
var x13 = new Date(date_1899_end);
|
||||
if(Date.prototype !== x13.constructor.prototype){
|
||||
if (Date.prototype !== x13.constructor.prototype) {
|
||||
$ERROR("#1.3: Date.prototype !== x13.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -38,7 +38,7 @@ if (!Date.prototype.isPrototypeOf(x22)) {
|
|||
}
|
||||
|
||||
var x23 = new Date(date_1900_start);
|
||||
if(Date.prototype !== x23.constructor.prototype){
|
||||
if (Date.prototype !== x23.constructor.prototype) {
|
||||
$ERROR("#2.3: Date.prototype !== x23.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -53,7 +53,7 @@ if (!Date.prototype.isPrototypeOf(x32)) {
|
|||
}
|
||||
|
||||
var x33 = new Date(date_1969_end);
|
||||
if(Date.prototype !== x33.constructor.prototype){
|
||||
if (Date.prototype !== x33.constructor.prototype) {
|
||||
$ERROR("#3.3: Date.prototype !== x33.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -68,7 +68,7 @@ if (!Date.prototype.isPrototypeOf(x42)) {
|
|||
}
|
||||
|
||||
var x43 = new Date(date_1970_start);
|
||||
if(Date.prototype !== x43.constructor.prototype){
|
||||
if (Date.prototype !== x43.constructor.prototype) {
|
||||
$ERROR("#4.3: Date.prototype !== x43.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -83,7 +83,7 @@ if (!Date.prototype.isPrototypeOf(x52)) {
|
|||
}
|
||||
|
||||
var x53 = new Date(date_1999_end);
|
||||
if(Date.prototype !== x53.constructor.prototype){
|
||||
if (Date.prototype !== x53.constructor.prototype) {
|
||||
$ERROR("#5.3: Date.prototype !== x53.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -98,7 +98,7 @@ if (!Date.prototype.isPrototypeOf(x62)) {
|
|||
}
|
||||
|
||||
var x63 = new Date(date_2000_start);
|
||||
if(Date.prototype !== x63.constructor.prototype){
|
||||
if (Date.prototype !== x63.constructor.prototype) {
|
||||
$ERROR("#6.3: Date.prototype !== x63.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -113,7 +113,7 @@ if (!Date.prototype.isPrototypeOf(x72)) {
|
|||
}
|
||||
|
||||
var x73 = new Date(date_2099_end);
|
||||
if(Date.prototype !== x73.constructor.prototype){
|
||||
if (Date.prototype !== x73.constructor.prototype) {
|
||||
$ERROR("#7.3: Date.prototype !== x73.constructor.prototype");
|
||||
}
|
||||
|
||||
|
@ -128,6 +128,6 @@ if (!Date.prototype.isPrototypeOf(x82)) {
|
|||
}
|
||||
|
||||
var x83 = new Date(date_2100_start);
|
||||
if(Date.prototype !== x83.constructor.prototype){
|
||||
if (Date.prototype !== x83.constructor.prototype) {
|
||||
$ERROR("#8.3: Date.prototype !== x83.constructor.prototype");
|
||||
}
|
||||
|
|
|
@ -8,6 +8,6 @@ es5id: 15.9.4_A1
|
|||
description: Checking existence of the property "prototype"
|
||||
---*/
|
||||
|
||||
if(!Date.hasOwnProperty("prototype")){
|
||||
if (!Date.hasOwnProperty("prototype")) {
|
||||
$ERROR('#1: The Date constructor has the property "prototype"');
|
||||
}
|
||||
|
|
|
@ -8,6 +8,6 @@ es5id: 15.9.4_A2
|
|||
description: Checking existence of the property "parse"
|
||||
---*/
|
||||
|
||||
if(!Date.hasOwnProperty("parse")){
|
||||
if (!Date.hasOwnProperty("parse")) {
|
||||
$ERROR('#1: The Date constructor has the property "parse"');
|
||||
}
|
||||
|
|
|
@ -8,6 +8,6 @@ es5id: 15.9.4_A3
|
|||
description: Checking existence of the property "UTC"
|
||||
---*/
|
||||
|
||||
if(!Date.hasOwnProperty("UTC")){
|
||||
if (!Date.hasOwnProperty("UTC")) {
|
||||
$ERROR('#1: The Date constructor has the property "UTC"');
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@ description: Checking Date.length property
|
|||
---*/
|
||||
|
||||
//CHECK#1
|
||||
if (!Date.hasOwnProperty("length")){
|
||||
if (!Date.hasOwnProperty("length")) {
|
||||
$ERROR('#1: Date constructor has length property');
|
||||
}
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute
|
|||
---*/
|
||||
|
||||
var x = Date.UTC;
|
||||
if(x === 1)
|
||||
if (x === 1)
|
||||
Date.UTC = 2;
|
||||
else
|
||||
Date.UTC = 1;
|
||||
|
|
|
@ -8,7 +8,7 @@ es5id: 15.9.4.3_A1_T2
|
|||
description: Checking absence of DontDelete attribute
|
||||
---*/
|
||||
|
||||
if (delete Date.UTC === false) {
|
||||
if (delete Date.UTC === false) {
|
||||
$ERROR('#1: The Date.UTC property has not the attributes DontDelete');
|
||||
}
|
||||
|
||||
|
|
|
@ -12,8 +12,8 @@ if (Date.propertyIsEnumerable('UTC')) {
|
|||
$ERROR('#1: The Date.UTC property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(var x in Date) {
|
||||
if(x === "UTC") {
|
||||
for (var x in Date) {
|
||||
if (x === "UTC") {
|
||||
$ERROR('#2: The Date.UTC has the attribute DontEnum');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,10 +8,10 @@ es5id: 15.9.4.3_A2_T1
|
|||
description: The "length" property of the "UTC" is 7
|
||||
---*/
|
||||
|
||||
if(Date.UTC.hasOwnProperty("length") !== true){
|
||||
if (Date.UTC.hasOwnProperty("length") !== true) {
|
||||
$ERROR('#1: The UTC has a "length" property');
|
||||
}
|
||||
|
||||
if(Date.UTC.length !== 7){
|
||||
if (Date.UTC.length !== 7) {
|
||||
$ERROR('#2: The "length" property of the UTC is 7');
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ es5id: 15.9.4.3_A3_T2
|
|||
description: Checking DontDelete attribute
|
||||
---*/
|
||||
|
||||
if (delete Date.UTC.length !== true) {
|
||||
if (delete Date.UTC.length !== true) {
|
||||
$ERROR('#1: The Date.UTC.length property does not have the attributes DontDelete');
|
||||
}
|
||||
|
||||
|
|
|
@ -14,8 +14,8 @@ if (Date.UTC.propertyIsEnumerable('length')) {
|
|||
$ERROR('#1: The Date.UTC.length property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(var x in Date.UTC) {
|
||||
if(x === "length") {
|
||||
for (var x in Date.UTC) {
|
||||
if (x === "length") {
|
||||
$ERROR('#2: The Date.UTC.length has the attribute DontEnum');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,6 +7,6 @@ es5id: 15.9.4.4-0-3
|
|||
description: Date.now must exist as a function
|
||||
---*/
|
||||
|
||||
var fun = Date.now;
|
||||
var fun = Date.now;
|
||||
|
||||
assert.sameValue(typeof (fun), "function", 'typeof (fun)');
|
||||
assert.sameValue(typeof(fun), "function", 'typeof (fun)');
|
||||
|
|
|
@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute
|
|||
---*/
|
||||
|
||||
var x = Date.parse;
|
||||
if(x === 1)
|
||||
if (x === 1)
|
||||
Date.parse = 2;
|
||||
else
|
||||
Date.parse = 1;
|
||||
|
|
|
@ -8,7 +8,7 @@ es5id: 15.9.4.2_A1_T2
|
|||
description: Checking absence of DontDelete attribute
|
||||
---*/
|
||||
|
||||
if (delete Date.parse === false) {
|
||||
if (delete Date.parse === false) {
|
||||
$ERROR('#1: The Date.parse property has not the attributes DontDelete');
|
||||
}
|
||||
|
||||
|
|
|
@ -12,8 +12,8 @@ if (Date.propertyIsEnumerable('parse')) {
|
|||
$ERROR('#1: The Date.parse property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(var x in Date) {
|
||||
if(x === "parse") {
|
||||
for (var x in Date) {
|
||||
if (x === "parse") {
|
||||
$ERROR('#2: The Date.parse has the attribute DontEnum');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,10 +8,10 @@ es5id: 15.9.4.2_A2_T1
|
|||
description: The "length" property of the "parse" is 1
|
||||
---*/
|
||||
|
||||
if(Date.parse.hasOwnProperty("length") !== true){
|
||||
if (Date.parse.hasOwnProperty("length") !== true) {
|
||||
$ERROR('#1: The parse has a "length" property');
|
||||
}
|
||||
|
||||
if(Date.parse.length !== 1){
|
||||
if (Date.parse.length !== 1) {
|
||||
$ERROR('#2: The "length" property of the parse is 1');
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ es5id: 15.9.4.2_A3_T2
|
|||
description: Checking DontDelete attribute
|
||||
---*/
|
||||
|
||||
if (delete Date.parse.length !== true) {
|
||||
if (delete Date.parse.length !== true) {
|
||||
$ERROR('#1: The Date.parse.length property does not have the attributes DontDelete');
|
||||
}
|
||||
|
||||
|
|
|
@ -14,8 +14,8 @@ if (Date.parse.propertyIsEnumerable('length')) {
|
|||
$ERROR('#1: The Date.parse.length property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(var x in Date.parse) {
|
||||
if(x === "length") {
|
||||
for (var x in Date.parse) {
|
||||
if (x === "length") {
|
||||
$ERROR('#2: The Date.parse.length has the attribute DontEnum');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,8 +14,8 @@ if (Date.propertyIsEnumerable('prototype')) {
|
|||
$ERROR('#1: The Date.prototype property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(var x in Date) {
|
||||
if(x === "prototype") {
|
||||
for (var x in Date) {
|
||||
if (x === "prototype") {
|
||||
$ERROR('#2: The Date.prototype has the attribute DontEnum');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,6 +8,6 @@ es5id: 15.9.5_A01_T1
|
|||
description: The Date.prototype has the property "constructor"
|
||||
---*/
|
||||
|
||||
if(Date.prototype.hasOwnProperty("constructor") !== true){
|
||||
if (Date.prototype.hasOwnProperty("constructor") !== true) {
|
||||
$ERROR('#1: The Date.prototype has the property "constructor"');
|
||||
}
|
||||
|
|
|
@ -8,6 +8,6 @@ es5id: 15.9.5_A02_T1
|
|||
description: The Date.prototype has the property "toString"
|
||||
---*/
|
||||
|
||||
if(Date.prototype.hasOwnProperty("toString") !== true){
|
||||
if (Date.prototype.hasOwnProperty("toString") !== true) {
|
||||
$ERROR('#1: The Date.prototype has the property "toString"');
|
||||
}
|
||||
|
|
|
@ -8,6 +8,6 @@ es5id: 15.9.5_A03_T1
|
|||
description: The Date.prototype has the property "toDateString"
|
||||
---*/
|
||||
|
||||
if(Date.prototype.hasOwnProperty("toDateString") !== true){
|
||||
if (Date.prototype.hasOwnProperty("toDateString") !== true) {
|
||||
$ERROR('#1: The Date.prototype has the property "toDateString"');
|
||||
}
|
||||
|
|
|
@ -8,6 +8,6 @@ es5id: 15.9.5_A04_T1
|
|||
description: The Date.prototype has the property "toTimeString"
|
||||
---*/
|
||||
|
||||
if(Date.prototype.hasOwnProperty("toTimeString") !== true){
|
||||
if (Date.prototype.hasOwnProperty("toTimeString") !== true) {
|
||||
$ERROR('#1: The Date.prototype has the property "toTimeString"');
|
||||
}
|
||||
|
|
|
@ -8,6 +8,6 @@ es5id: 15.9.5_A05_T1
|
|||
description: The Date.prototype has the property "toLocaleString"
|
||||
---*/
|
||||
|
||||
if(Date.prototype.hasOwnProperty("toLocaleString") !== true){
|
||||
if (Date.prototype.hasOwnProperty("toLocaleString") !== true) {
|
||||
$ERROR('#1: The Date.prototype has the property "toLocaleString"');
|
||||
}
|
||||
|
|
|
@ -8,6 +8,6 @@ es5id: 15.9.5_A06_T1
|
|||
description: The Date.prototype has the property "toLocaleDateString"
|
||||
---*/
|
||||
|
||||
if(Date.prototype.hasOwnProperty("toLocaleDateString") !== true){
|
||||
if (Date.prototype.hasOwnProperty("toLocaleDateString") !== true) {
|
||||
$ERROR('#1: The Date.prototype has the property "toLocaleDateString"');
|
||||
}
|
||||
|
|
|
@ -8,6 +8,6 @@ es5id: 15.9.5_A07_T1
|
|||
description: The Date.prototype has the property "toLocaleTimeString"
|
||||
---*/
|
||||
|
||||
if(Date.prototype.hasOwnProperty("toLocaleTimeString") !== true){
|
||||
if (Date.prototype.hasOwnProperty("toLocaleTimeString") !== true) {
|
||||
$ERROR('#1: The Date.prototype has the property "toLocaleTimeString"');
|
||||
}
|
||||
|
|
|
@ -8,6 +8,6 @@ es5id: 15.9.5_A08_T1
|
|||
description: The Date.prototype has the property "valueOf"
|
||||
---*/
|
||||
|
||||
if(Date.prototype.hasOwnProperty("valueOf") !== true){
|
||||
if (Date.prototype.hasOwnProperty("valueOf") !== true) {
|
||||
$ERROR('#1: The Date.prototype has the property "valueOf"');
|
||||
}
|
||||
|
|
|
@ -8,6 +8,6 @@ es5id: 15.9.5_A09_T1
|
|||
description: The Date.prototype has the property "getTime"
|
||||
---*/
|
||||
|
||||
if(Date.prototype.hasOwnProperty("getTime") !== true){
|
||||
if (Date.prototype.hasOwnProperty("getTime") !== true) {
|
||||
$ERROR('#1: The Date.prototype has the property "getTime"');
|
||||
}
|
||||
|
|
|
@ -8,6 +8,6 @@ es5id: 15.9.5_A10_T1
|
|||
description: The Date.prototype has the property "getFullYear"
|
||||
---*/
|
||||
|
||||
if(Date.prototype.hasOwnProperty("getFullYear") !== true){
|
||||
if (Date.prototype.hasOwnProperty("getFullYear") !== true) {
|
||||
$ERROR('#1: The Date.prototype has the property "getFullYear"');
|
||||
}
|
||||
|
|
|
@ -8,6 +8,6 @@ es5id: 15.9.5_A11_T1
|
|||
description: The Date.prototype has the property "getUTCFullYear"
|
||||
---*/
|
||||
|
||||
if(Date.prototype.hasOwnProperty("getUTCFullYear") !== true){
|
||||
if (Date.prototype.hasOwnProperty("getUTCFullYear") !== true) {
|
||||
$ERROR('#1: The Date.prototype has the property "getUTCFullYear"');
|
||||
}
|
||||
|
|
|
@ -8,6 +8,6 @@ es5id: 15.9.5_A12_T1
|
|||
description: The Date.prototype has the property "getMonth"
|
||||
---*/
|
||||
|
||||
if(Date.prototype.hasOwnProperty("getMonth") !== true){
|
||||
if (Date.prototype.hasOwnProperty("getMonth") !== true) {
|
||||
$ERROR('#1: The Date.prototype has the property "getMonth"');
|
||||
}
|
||||
|
|
|
@ -8,6 +8,6 @@ es5id: 15.9.5_A13_T1
|
|||
description: The Date.prototype has the property "getUTCMonth"
|
||||
---*/
|
||||
|
||||
if(Date.prototype.hasOwnProperty("getUTCMonth") !== true){
|
||||
if (Date.prototype.hasOwnProperty("getUTCMonth") !== true) {
|
||||
$ERROR('#1: The Date.prototype has the property "getUTCMonth"');
|
||||
}
|
||||
|
|
|
@ -8,6 +8,6 @@ es5id: 15.9.5_A14_T1
|
|||
description: The Date.prototype has the property "getDate"
|
||||
---*/
|
||||
|
||||
if(Date.prototype.hasOwnProperty("getDate") !== true){
|
||||
if (Date.prototype.hasOwnProperty("getDate") !== true) {
|
||||
$ERROR('#1: The Date.prototype has the property "getDate"');
|
||||
}
|
||||
|
|
|
@ -8,6 +8,6 @@ es5id: 15.9.5_A15_T1
|
|||
description: The Date.prototype has the property "getUTCDate"
|
||||
---*/
|
||||
|
||||
if(Date.prototype.hasOwnProperty("getUTCDate") !== true){
|
||||
if (Date.prototype.hasOwnProperty("getUTCDate") !== true) {
|
||||
$ERROR('#1: The Date.prototype has the property "getUTCDate"');
|
||||
}
|
||||
|
|
|
@ -8,6 +8,6 @@ es5id: 15.9.5_A16_T1
|
|||
description: The Date.prototype has the property "getDay"
|
||||
---*/
|
||||
|
||||
if(Date.prototype.hasOwnProperty("getDay") !== true){
|
||||
if (Date.prototype.hasOwnProperty("getDay") !== true) {
|
||||
$ERROR('#1: The Date.prototype has the property "getDay"');
|
||||
}
|
||||
|
|
|
@ -8,6 +8,6 @@ es5id: 15.9.5_A17_T1
|
|||
description: The Date.prototype has the property "getUTCDay"
|
||||
---*/
|
||||
|
||||
if(Date.prototype.hasOwnProperty("getUTCDay") !== true){
|
||||
if (Date.prototype.hasOwnProperty("getUTCDay") !== true) {
|
||||
$ERROR('#1: The Date.prototype has the property "getUTCDay"');
|
||||
}
|
||||
|
|
|
@ -8,6 +8,6 @@ es5id: 15.9.5_A18_T1
|
|||
description: The Date.prototype has the property "getHours"
|
||||
---*/
|
||||
|
||||
if(Date.prototype.hasOwnProperty("getHours") !== true){
|
||||
if (Date.prototype.hasOwnProperty("getHours") !== true) {
|
||||
$ERROR('#1: The Date.prototype has the property "getHours"');
|
||||
}
|
||||
|
|
|
@ -8,6 +8,6 @@ es5id: 15.9.5_A19_T1
|
|||
description: The Date.prototype has the property "getUTCHours"
|
||||
---*/
|
||||
|
||||
if(Date.prototype.hasOwnProperty("getUTCHours") !== true){
|
||||
if (Date.prototype.hasOwnProperty("getUTCHours") !== true) {
|
||||
$ERROR('#1: The Date.prototype has the property "getUTCHours"');
|
||||
}
|
||||
|
|
|
@ -8,6 +8,6 @@ es5id: 15.9.5_A20_T1
|
|||
description: The Date.prototype has the property "getMinutes"
|
||||
---*/
|
||||
|
||||
if(Date.prototype.hasOwnProperty("getMinutes") !== true){
|
||||
if (Date.prototype.hasOwnProperty("getMinutes") !== true) {
|
||||
$ERROR('#1: The Date.prototype has the property "getMinutes"');
|
||||
}
|
||||
|
|
|
@ -8,6 +8,6 @@ es5id: 15.9.5_A21_T1
|
|||
description: The Date.prototype has the property "getUTCMinutes"
|
||||
---*/
|
||||
|
||||
if(Date.prototype.hasOwnProperty("getUTCMinutes") !== true){
|
||||
if (Date.prototype.hasOwnProperty("getUTCMinutes") !== true) {
|
||||
$ERROR('#1: The Date.prototype has the property "getUTCMinutes"');
|
||||
}
|
||||
|
|
|
@ -8,6 +8,6 @@ es5id: 15.9.5_A22_T1
|
|||
description: The Date.prototype has the property "getSeconds"
|
||||
---*/
|
||||
|
||||
if(Date.prototype.hasOwnProperty("getSeconds") !== true){
|
||||
if (Date.prototype.hasOwnProperty("getSeconds") !== true) {
|
||||
$ERROR('#1: The Date.prototype has the property "getSeconds"');
|
||||
}
|
||||
|
|
|
@ -8,6 +8,6 @@ es5id: 15.9.5_A23_T1
|
|||
description: The Date.prototype has the property "getUTCSeconds"
|
||||
---*/
|
||||
|
||||
if(Date.prototype.hasOwnProperty("getUTCSeconds") !== true){
|
||||
if (Date.prototype.hasOwnProperty("getUTCSeconds") !== true) {
|
||||
$ERROR('#1: The Date.prototype has the property "getUTCSeconds"');
|
||||
}
|
||||
|
|
|
@ -8,6 +8,6 @@ es5id: 15.9.5_A24_T1
|
|||
description: The Date.prototype has the property "getMilliseconds"
|
||||
---*/
|
||||
|
||||
if(Date.prototype.hasOwnProperty("getMilliseconds") !== true){
|
||||
if (Date.prototype.hasOwnProperty("getMilliseconds") !== true) {
|
||||
$ERROR('#1: The Date.prototype has the property "getMilliseconds"');
|
||||
}
|
||||
|
|
|
@ -8,6 +8,6 @@ es5id: 15.9.5_A25_T1
|
|||
description: The Date.prototype has the property "getUTCMilliseconds"
|
||||
---*/
|
||||
|
||||
if(Date.prototype.hasOwnProperty("getUTCMilliseconds") !== true){
|
||||
if (Date.prototype.hasOwnProperty("getUTCMilliseconds") !== true) {
|
||||
$ERROR('#1: The Date.prototype has the property "getUTCMilliseconds"');
|
||||
}
|
||||
|
|
|
@ -8,6 +8,6 @@ es5id: 15.9.5_A26_T1
|
|||
description: The Date.prototype has the property "getTimezoneOffset"
|
||||
---*/
|
||||
|
||||
if(Date.prototype.hasOwnProperty("getTimezoneOffset") !== true){
|
||||
if (Date.prototype.hasOwnProperty("getTimezoneOffset") !== true) {
|
||||
$ERROR('#1: The Date.prototype has the property "getTimezoneOffset"');
|
||||
}
|
||||
|
|
|
@ -8,6 +8,6 @@ es5id: 15.9.5_A27_T1
|
|||
description: The Date.prototype has the property "setTime"
|
||||
---*/
|
||||
|
||||
if(Date.prototype.hasOwnProperty("setTime") !== true){
|
||||
if (Date.prototype.hasOwnProperty("setTime") !== true) {
|
||||
$ERROR('#1: The Date.prototype has the property "setTime"');
|
||||
}
|
||||
|
|
|
@ -8,6 +8,6 @@ es5id: 15.9.5_A28_T1
|
|||
description: The Date.prototype has the property "setMilliseconds"
|
||||
---*/
|
||||
|
||||
if(Date.prototype.hasOwnProperty("setMilliseconds") !== true){
|
||||
if (Date.prototype.hasOwnProperty("setMilliseconds") !== true) {
|
||||
$ERROR('#1: The Date.prototype has the property "setMilliseconds"');
|
||||
}
|
||||
|
|
|
@ -8,6 +8,6 @@ es5id: 15.9.5_A29_T1
|
|||
description: The Date.prototype has the property "setUTCMilliseconds"
|
||||
---*/
|
||||
|
||||
if(Date.prototype.hasOwnProperty("setUTCMilliseconds") !== true){
|
||||
if (Date.prototype.hasOwnProperty("setUTCMilliseconds") !== true) {
|
||||
$ERROR('#1: The Date.prototype has the property "setUTCMilliseconds"');
|
||||
}
|
||||
|
|
|
@ -8,6 +8,6 @@ es5id: 15.9.5_A30_T1
|
|||
description: The Date.prototype has the property "setSeconds"
|
||||
---*/
|
||||
|
||||
if(Date.prototype.hasOwnProperty("setSeconds") !== true){
|
||||
if (Date.prototype.hasOwnProperty("setSeconds") !== true) {
|
||||
$ERROR('#1: The Date.prototype has the property "setSeconds"');
|
||||
}
|
||||
|
|
|
@ -8,6 +8,6 @@ es5id: 15.9.5_A31_T1
|
|||
description: The Date.prototype has the property "setUTCSeconds"
|
||||
---*/
|
||||
|
||||
if(Date.prototype.hasOwnProperty("setUTCSeconds") !== true){
|
||||
if (Date.prototype.hasOwnProperty("setUTCSeconds") !== true) {
|
||||
$ERROR('#1: The Date.prototype has the property "setUTCSeconds"');
|
||||
}
|
||||
|
|
|
@ -8,6 +8,6 @@ es5id: 15.9.5_A32_T1
|
|||
description: The Date.prototype has the property "setMinutes"
|
||||
---*/
|
||||
|
||||
if(Date.prototype.hasOwnProperty("setMinutes") !== true){
|
||||
if (Date.prototype.hasOwnProperty("setMinutes") !== true) {
|
||||
$ERROR('#1: The Date.prototype has the property "setMinutes"');
|
||||
}
|
||||
|
|
|
@ -8,6 +8,6 @@ es5id: 15.9.5_A33_T1
|
|||
description: The Date.prototype has the property "setUTCMinutes"
|
||||
---*/
|
||||
|
||||
if(Date.prototype.hasOwnProperty("setUTCMinutes") !== true){
|
||||
if (Date.prototype.hasOwnProperty("setUTCMinutes") !== true) {
|
||||
$ERROR('#1: The Date.prototype has the property "setUTCMinutes"');
|
||||
}
|
||||
|
|
|
@ -8,6 +8,6 @@ es5id: 15.9.5_A34_T1
|
|||
description: The Date.prototype has the property "setHours"
|
||||
---*/
|
||||
|
||||
if(Date.prototype.hasOwnProperty("setHours") !== true){
|
||||
if (Date.prototype.hasOwnProperty("setHours") !== true) {
|
||||
$ERROR('#1: The Date.prototype has the property "setHours"');
|
||||
}
|
||||
|
|
|
@ -8,6 +8,6 @@ es5id: 15.9.5_A35_T1
|
|||
description: The Date.prototype has the property "setUTCHours"
|
||||
---*/
|
||||
|
||||
if(Date.prototype.hasOwnProperty("setUTCHours") !== true){
|
||||
if (Date.prototype.hasOwnProperty("setUTCHours") !== true) {
|
||||
$ERROR('#1: The Date.prototype has the property "setUTCHours"');
|
||||
}
|
||||
|
|
|
@ -8,6 +8,6 @@ es5id: 15.9.5_A36_T1
|
|||
description: The Date.prototype has the property "setDate"
|
||||
---*/
|
||||
|
||||
if(Date.prototype.hasOwnProperty("setDate") !== true){
|
||||
if (Date.prototype.hasOwnProperty("setDate") !== true) {
|
||||
$ERROR('#1: The Date.prototype has the property "setDate"');
|
||||
}
|
||||
|
|
|
@ -8,6 +8,6 @@ es5id: 15.9.5_A37_T1
|
|||
description: The Date.prototype has the property "setUTCDate"
|
||||
---*/
|
||||
|
||||
if(Date.prototype.hasOwnProperty("setUTCDate") !== true){
|
||||
if (Date.prototype.hasOwnProperty("setUTCDate") !== true) {
|
||||
$ERROR('#1: The Date.prototype has the property "setUTCDate"');
|
||||
}
|
||||
|
|
|
@ -8,6 +8,6 @@ es5id: 15.9.5_A38_T1
|
|||
description: The Date.prototype has the property "setMonth"
|
||||
---*/
|
||||
|
||||
if(Date.prototype.hasOwnProperty("setMonth") !== true){
|
||||
if (Date.prototype.hasOwnProperty("setMonth") !== true) {
|
||||
$ERROR('#1: The Date.prototype has the property "setMonth"');
|
||||
}
|
||||
|
|
|
@ -8,6 +8,6 @@ es5id: 15.9.5_A39_T1
|
|||
description: The Date.prototype has the property "setUTCMonth"
|
||||
---*/
|
||||
|
||||
if(Date.prototype.hasOwnProperty("setUTCMonth") !== true){
|
||||
if (Date.prototype.hasOwnProperty("setUTCMonth") !== true) {
|
||||
$ERROR('#1: The Date.prototype has the property "setUTCMonth"');
|
||||
}
|
||||
|
|
|
@ -8,6 +8,6 @@ es5id: 15.9.5_A40_T1
|
|||
description: The Date.prototype has the property "setFullYear"
|
||||
---*/
|
||||
|
||||
if(Date.prototype.hasOwnProperty("setFullYear") !== true){
|
||||
if (Date.prototype.hasOwnProperty("setFullYear") !== true) {
|
||||
$ERROR('#1: The Date.prototype has the property "setFullYear"');
|
||||
}
|
||||
|
|
|
@ -8,6 +8,6 @@ es5id: 15.9.5_A41_T1
|
|||
description: The Date.prototype has the property "setUTCFullYear"
|
||||
---*/
|
||||
|
||||
if(Date.prototype.hasOwnProperty("setUTCFullYear") !== true){
|
||||
if (Date.prototype.hasOwnProperty("setUTCFullYear") !== true) {
|
||||
$ERROR('#1: The Date.prototype has the property "setUTCFullYear"');
|
||||
}
|
||||
|
|
|
@ -8,6 +8,6 @@ es5id: 15.9.5_A42_T1
|
|||
description: The Date.prototype has the property "toUTCString"
|
||||
---*/
|
||||
|
||||
if(Date.prototype.hasOwnProperty("toUTCString") !== true){
|
||||
if (Date.prototype.hasOwnProperty("toUTCString") !== true) {
|
||||
$ERROR('#1: The Date.prototype has the property "toUTCString"');
|
||||
}
|
||||
|
|
|
@ -48,5 +48,9 @@ assert.throws(TypeError, function() {
|
|||
});
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
d[Symbol.toPrimitive]({ toString: function() { 'number'; } });
|
||||
d[Symbol.toPrimitive]({
|
||||
toString: function() {
|
||||
'number';
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute
|
|||
---*/
|
||||
|
||||
var x = Date.prototype.constructor;
|
||||
if(x === 1)
|
||||
if (x === 1)
|
||||
Date.prototype.constructor = 2;
|
||||
else
|
||||
Date.prototype.constructor = 1;
|
||||
|
|
|
@ -8,7 +8,7 @@ es5id: 15.9.5.1_A1_T2
|
|||
description: Checking absence of DontDelete attribute
|
||||
---*/
|
||||
|
||||
if (delete Date.prototype.constructor === false) {
|
||||
if (delete Date.prototype.constructor === false) {
|
||||
$ERROR('#1: The Date.prototype.constructor property has not the attributes DontDelete');
|
||||
}
|
||||
|
||||
|
|
|
@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('constructor')) {
|
|||
$ERROR('#1: The Date.prototype.constructor property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(var x in Date.prototype) {
|
||||
if(x === "constructor") {
|
||||
for (var x in Date.prototype) {
|
||||
if (x === "constructor") {
|
||||
$ERROR('#2: The Date.prototype.constructor has the attribute DontEnum');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,10 +8,10 @@ es5id: 15.9.5.1_A2_T1
|
|||
description: The "length" property of the "constructor" is 7
|
||||
---*/
|
||||
|
||||
if(Date.prototype.constructor.hasOwnProperty("length") !== true){
|
||||
if (Date.prototype.constructor.hasOwnProperty("length") !== true) {
|
||||
$ERROR('#1: The constructor has a "length" property');
|
||||
}
|
||||
|
||||
if(Date.prototype.constructor.length !== 7){
|
||||
if (Date.prototype.constructor.length !== 7) {
|
||||
$ERROR('#2: The "length" property of the constructor is 7');
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ es5id: 15.9.5.1_A3_T2
|
|||
description: Checking DontDelete attribute
|
||||
---*/
|
||||
|
||||
if (delete Date.prototype.constructor.length !== true) {
|
||||
if (delete Date.prototype.constructor.length !== true) {
|
||||
$ERROR('#1: The Date.prototype.constructor.length property does not have the attributes DontDelete');
|
||||
}
|
||||
|
||||
|
|
|
@ -14,8 +14,8 @@ if (Date.prototype.constructor.propertyIsEnumerable('length')) {
|
|||
$ERROR('#1: The Date.prototype.constructor.length property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(var x in Date.prototype.constructor) {
|
||||
if(x === "length") {
|
||||
for (var x in Date.prototype.constructor) {
|
||||
if (x === "length") {
|
||||
$ERROR('#2: The Date.prototype.constructor.length has the attribute DontEnum');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute
|
|||
---*/
|
||||
|
||||
var x = Date.prototype.getDate;
|
||||
if(x === 1)
|
||||
if (x === 1)
|
||||
Date.prototype.getDate = 2;
|
||||
else
|
||||
Date.prototype.getDate = 1;
|
||||
|
|
|
@ -8,7 +8,7 @@ es5id: 15.9.5.14_A1_T2
|
|||
description: Checking absence of DontDelete attribute
|
||||
---*/
|
||||
|
||||
if (delete Date.prototype.getDate === false) {
|
||||
if (delete Date.prototype.getDate === false) {
|
||||
$ERROR('#1: The Date.prototype.getDate property has not the attributes DontDelete');
|
||||
}
|
||||
|
||||
|
|
|
@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('getDate')) {
|
|||
$ERROR('#1: The Date.prototype.getDate property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(var x in Date.prototype) {
|
||||
if(x === "getDate") {
|
||||
for (var x in Date.prototype) {
|
||||
if (x === "getDate") {
|
||||
$ERROR('#2: The Date.prototype.getDate has the attribute DontEnum');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,10 +8,10 @@ es5id: 15.9.5.14_A2_T1
|
|||
description: The "length" property of the "getDate" is 0
|
||||
---*/
|
||||
|
||||
if(Date.prototype.getDate.hasOwnProperty("length") !== true){
|
||||
if (Date.prototype.getDate.hasOwnProperty("length") !== true) {
|
||||
$ERROR('#1: The getDate has a "length" property');
|
||||
}
|
||||
|
||||
if(Date.prototype.getDate.length !== 0){
|
||||
if (Date.prototype.getDate.length !== 0) {
|
||||
$ERROR('#2: The "length" property of the getDate is 0');
|
||||
}
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue