mirror of https://github.com/tc39/test262.git
Fix strict mode errors in built-ins/Date
Add missing "var" declarations and noStrict flags. Part of issue #35.
This commit is contained in:
parent
87fd4e5699
commit
07fa78d677
|
@ -7,7 +7,7 @@ es5id: 15.9.4.3_A1_T1
|
|||
description: Checking absence of ReadOnly attribute
|
||||
---*/
|
||||
|
||||
x = Date.UTC;
|
||||
var x = Date.UTC;
|
||||
if(x === 1)
|
||||
Date.UTC = 2;
|
||||
else
|
||||
|
|
|
@ -11,7 +11,7 @@ if (Date.propertyIsEnumerable('UTC')) {
|
|||
$ERROR('#1: The Date.UTC property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(x in Date) {
|
||||
for(var x in Date) {
|
||||
if(x === "UTC") {
|
||||
$ERROR('#2: The Date.UTC has the attribute DontEnum');
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@ info: >
|
|||
attributes
|
||||
es5id: 15.9.4.3_A3_T1
|
||||
description: Checking ReadOnly attribute
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
x = Date.UTC.length;
|
||||
|
|
|
@ -13,7 +13,7 @@ if (Date.UTC.propertyIsEnumerable('length')) {
|
|||
$ERROR('#1: The Date.UTC.length property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(x in Date.UTC) {
|
||||
for(var x in Date.UTC) {
|
||||
if(x === "length") {
|
||||
$ERROR('#2: The Date.UTC.length has the attribute DontEnum');
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ es5id: 15.9.4.2_A1_T1
|
|||
description: Checking absence of ReadOnly attribute
|
||||
---*/
|
||||
|
||||
x = Date.parse;
|
||||
var x = Date.parse;
|
||||
if(x === 1)
|
||||
Date.parse = 2;
|
||||
else
|
||||
|
|
|
@ -11,7 +11,7 @@ if (Date.propertyIsEnumerable('parse')) {
|
|||
$ERROR('#1: The Date.parse property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(x in Date) {
|
||||
for(var x in Date) {
|
||||
if(x === "parse") {
|
||||
$ERROR('#2: The Date.parse has the attribute DontEnum');
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@ info: >
|
|||
attributes
|
||||
es5id: 15.9.4.2_A3_T1
|
||||
description: Checking ReadOnly attribute
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
x = Date.parse.length;
|
||||
|
|
|
@ -13,7 +13,7 @@ if (Date.parse.propertyIsEnumerable('length')) {
|
|||
$ERROR('#1: The Date.parse.length property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(x in Date.parse) {
|
||||
for(var x in Date.parse) {
|
||||
if(x === "length") {
|
||||
$ERROR('#2: The Date.parse.length has the attribute DontEnum');
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@ info: >
|
|||
attributes
|
||||
es5id: 15.9.4.1_A1_T1
|
||||
description: Checking ReadOnly attribute
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
x = Date.prototype;
|
||||
|
|
|
@ -7,6 +7,7 @@ info: >
|
|||
attributes
|
||||
es5id: 15.9.4.1_A1_T2
|
||||
description: Checking DontDelete attribute
|
||||
flags: [noStrict]
|
||||
includes: [$FAIL.js]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ if (Date.propertyIsEnumerable('prototype')) {
|
|||
$ERROR('#1: The Date.prototype property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(x in Date) {
|
||||
for(var x in Date) {
|
||||
if(x === "prototype") {
|
||||
$ERROR('#2: The Date.prototype has the attribute DontEnum');
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ es5id: 15.9.5.1_A1_T1
|
|||
description: Checking absence of ReadOnly attribute
|
||||
---*/
|
||||
|
||||
x = Date.prototype.constructor;
|
||||
var x = Date.prototype.constructor;
|
||||
if(x === 1)
|
||||
Date.prototype.constructor = 2;
|
||||
else
|
||||
|
|
|
@ -11,7 +11,7 @@ if (Date.prototype.propertyIsEnumerable('constructor')) {
|
|||
$ERROR('#1: The Date.prototype.constructor property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(x in Date.prototype) {
|
||||
for(var x in Date.prototype) {
|
||||
if(x === "constructor") {
|
||||
$ERROR('#2: The Date.prototype.constructor has the attribute DontEnum');
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@ info: >
|
|||
DontDelete, DontEnum } attributes
|
||||
es5id: 15.9.5.1_A3_T1
|
||||
description: Checking ReadOnly attribute
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
x = Date.prototype.constructor.length;
|
||||
|
|
|
@ -13,7 +13,7 @@ if (Date.prototype.constructor.propertyIsEnumerable('length')) {
|
|||
$ERROR('#1: The Date.prototype.constructor.length property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(x in Date.prototype.constructor) {
|
||||
for(var x in Date.prototype.constructor) {
|
||||
if(x === "length") {
|
||||
$ERROR('#2: The Date.prototype.constructor.length has the attribute DontEnum');
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ es5id: 15.9.5.14_A1_T1
|
|||
description: Checking absence of ReadOnly attribute
|
||||
---*/
|
||||
|
||||
x = Date.prototype.getDate;
|
||||
var x = Date.prototype.getDate;
|
||||
if(x === 1)
|
||||
Date.prototype.getDate = 2;
|
||||
else
|
||||
|
|
|
@ -11,7 +11,7 @@ if (Date.prototype.propertyIsEnumerable('getDate')) {
|
|||
$ERROR('#1: The Date.prototype.getDate property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(x in Date.prototype) {
|
||||
for(var x in Date.prototype) {
|
||||
if(x === "getDate") {
|
||||
$ERROR('#2: The Date.prototype.getDate has the attribute DontEnum');
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@ info: >
|
|||
DontEnum } attributes
|
||||
es5id: 15.9.5.14_A3_T1
|
||||
description: Checking ReadOnly attribute
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
x = Date.prototype.getDate.length;
|
||||
|
|
|
@ -13,7 +13,7 @@ if (Date.prototype.getDate.propertyIsEnumerable('length')) {
|
|||
$ERROR('#1: The Date.prototype.getDate.length property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(x in Date.prototype.getDate) {
|
||||
for(var x in Date.prototype.getDate) {
|
||||
if(x === "length") {
|
||||
$ERROR('#2: The Date.prototype.getDate.length has the attribute DontEnum');
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ es5id: 15.9.5.16_A1_T1
|
|||
description: Checking absence of ReadOnly attribute
|
||||
---*/
|
||||
|
||||
x = Date.prototype.getDay;
|
||||
var x = Date.prototype.getDay;
|
||||
if(x === 1)
|
||||
Date.prototype.getDay = 2;
|
||||
else
|
||||
|
|
|
@ -11,7 +11,7 @@ if (Date.prototype.propertyIsEnumerable('getDay')) {
|
|||
$ERROR('#1: The Date.prototype.getDay property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(x in Date.prototype) {
|
||||
for(var x in Date.prototype) {
|
||||
if(x === "getDay") {
|
||||
$ERROR('#2: The Date.prototype.getDay has the attribute DontEnum');
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@ info: >
|
|||
DontEnum } attributes
|
||||
es5id: 15.9.5.16_A3_T1
|
||||
description: Checking ReadOnly attribute
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
x = Date.prototype.getDay.length;
|
||||
|
|
|
@ -13,7 +13,7 @@ if (Date.prototype.getDay.propertyIsEnumerable('length')) {
|
|||
$ERROR('#1: The Date.prototype.getDay.length property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(x in Date.prototype.getDay) {
|
||||
for(var x in Date.prototype.getDay) {
|
||||
if(x === "length") {
|
||||
$ERROR('#2: The Date.prototype.getDay.length has the attribute DontEnum');
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ es5id: 15.9.5.10_A1_T1
|
|||
description: Checking absence of ReadOnly attribute
|
||||
---*/
|
||||
|
||||
x = Date.prototype.getFullYear;
|
||||
var x = Date.prototype.getFullYear;
|
||||
if(x === 1)
|
||||
Date.prototype.getFullYear = 2;
|
||||
else
|
||||
|
|
|
@ -11,7 +11,7 @@ if (Date.prototype.propertyIsEnumerable('getFullYear')) {
|
|||
$ERROR('#1: The Date.prototype.getFullYear property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(x in Date.prototype) {
|
||||
for(var x in Date.prototype) {
|
||||
if(x === "getFullYear") {
|
||||
$ERROR('#2: The Date.prototype.getFullYear has the attribute DontEnum');
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@ info: >
|
|||
DontDelete, DontEnum } attributes
|
||||
es5id: 15.9.5.10_A3_T1
|
||||
description: Checking ReadOnly attribute
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
x = Date.prototype.getFullYear.length;
|
||||
|
|
|
@ -13,7 +13,7 @@ if (Date.prototype.getFullYear.propertyIsEnumerable('length')) {
|
|||
$ERROR('#1: The Date.prototype.getFullYear.length property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(x in Date.prototype.getFullYear) {
|
||||
for(var x in Date.prototype.getFullYear) {
|
||||
if(x === "length") {
|
||||
$ERROR('#2: The Date.prototype.getFullYear.length has the attribute DontEnum');
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ es5id: 15.9.5.18_A1_T1
|
|||
description: Checking absence of ReadOnly attribute
|
||||
---*/
|
||||
|
||||
x = Date.prototype.getHours;
|
||||
var x = Date.prototype.getHours;
|
||||
if(x === 1)
|
||||
Date.prototype.getHours = 2;
|
||||
else
|
||||
|
|
|
@ -11,7 +11,7 @@ if (Date.prototype.propertyIsEnumerable('getHours')) {
|
|||
$ERROR('#1: The Date.prototype.getHours property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(x in Date.prototype) {
|
||||
for(var x in Date.prototype) {
|
||||
if(x === "getHours") {
|
||||
$ERROR('#2: The Date.prototype.getHours has the attribute DontEnum');
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@ info: >
|
|||
DontEnum } attributes
|
||||
es5id: 15.9.5.18_A3_T1
|
||||
description: Checking ReadOnly attribute
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
x = Date.prototype.getHours.length;
|
||||
|
|
|
@ -13,7 +13,7 @@ if (Date.prototype.getHours.propertyIsEnumerable('length')) {
|
|||
$ERROR('#1: The Date.prototype.getHours.length property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(x in Date.prototype.getHours) {
|
||||
for(var x in Date.prototype.getHours) {
|
||||
if(x === "length") {
|
||||
$ERROR('#2: The Date.prototype.getHours.length has the attribute DontEnum');
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ es5id: 15.9.5.24_A1_T1
|
|||
description: Checking absence of ReadOnly attribute
|
||||
---*/
|
||||
|
||||
x = Date.prototype.getMilliseconds;
|
||||
var x = Date.prototype.getMilliseconds;
|
||||
if(x === 1)
|
||||
Date.prototype.getMilliseconds = 2;
|
||||
else
|
||||
|
|
|
@ -11,7 +11,7 @@ if (Date.prototype.propertyIsEnumerable('getMilliseconds')) {
|
|||
$ERROR('#1: The Date.prototype.getMilliseconds property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(x in Date.prototype) {
|
||||
for(var x in Date.prototype) {
|
||||
if(x === "getMilliseconds") {
|
||||
$ERROR('#2: The Date.prototype.getMilliseconds has the attribute DontEnum');
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@ info: >
|
|||
DontDelete, DontEnum } attributes
|
||||
es5id: 15.9.5.24_A3_T1
|
||||
description: Checking ReadOnly attribute
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
x = Date.prototype.getMilliseconds.length;
|
||||
|
|
|
@ -13,7 +13,7 @@ if (Date.prototype.getMilliseconds.propertyIsEnumerable('length')) {
|
|||
$ERROR('#1: The Date.prototype.getMilliseconds.length property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(x in Date.prototype.getMilliseconds) {
|
||||
for(var x in Date.prototype.getMilliseconds) {
|
||||
if(x === "length") {
|
||||
$ERROR('#2: The Date.prototype.getMilliseconds.length has the attribute DontEnum');
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ es5id: 15.9.5.20_A1_T1
|
|||
description: Checking absence of ReadOnly attribute
|
||||
---*/
|
||||
|
||||
x = Date.prototype.getMinutes;
|
||||
var x = Date.prototype.getMinutes;
|
||||
if(x === 1)
|
||||
Date.prototype.getMinutes = 2;
|
||||
else
|
||||
|
|
|
@ -11,7 +11,7 @@ if (Date.prototype.propertyIsEnumerable('getMinutes')) {
|
|||
$ERROR('#1: The Date.prototype.getMinutes property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(x in Date.prototype) {
|
||||
for(var x in Date.prototype) {
|
||||
if(x === "getMinutes") {
|
||||
$ERROR('#2: The Date.prototype.getMinutes has the attribute DontEnum');
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@ info: >
|
|||
DontDelete, DontEnum } attributes
|
||||
es5id: 15.9.5.20_A3_T1
|
||||
description: Checking ReadOnly attribute
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
x = Date.prototype.getMinutes.length;
|
||||
|
|
|
@ -13,7 +13,7 @@ if (Date.prototype.getMinutes.propertyIsEnumerable('length')) {
|
|||
$ERROR('#1: The Date.prototype.getMinutes.length property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(x in Date.prototype.getMinutes) {
|
||||
for(var x in Date.prototype.getMinutes) {
|
||||
if(x === "length") {
|
||||
$ERROR('#2: The Date.prototype.getMinutes.length has the attribute DontEnum');
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ es5id: 15.9.5.12_A1_T1
|
|||
description: Checking absence of ReadOnly attribute
|
||||
---*/
|
||||
|
||||
x = Date.prototype.getMonth;
|
||||
var x = Date.prototype.getMonth;
|
||||
if(x === 1)
|
||||
Date.prototype.getMonth = 2;
|
||||
else
|
||||
|
|
|
@ -11,7 +11,7 @@ if (Date.prototype.propertyIsEnumerable('getMonth')) {
|
|||
$ERROR('#1: The Date.prototype.getMonth property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(x in Date.prototype) {
|
||||
for(var x in Date.prototype) {
|
||||
if(x === "getMonth") {
|
||||
$ERROR('#2: The Date.prototype.getMonth has the attribute DontEnum');
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@ info: >
|
|||
DontEnum } attributes
|
||||
es5id: 15.9.5.12_A3_T1
|
||||
description: Checking ReadOnly attribute
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
x = Date.prototype.getMonth.length;
|
||||
|
|
|
@ -13,7 +13,7 @@ if (Date.prototype.getMonth.propertyIsEnumerable('length')) {
|
|||
$ERROR('#1: The Date.prototype.getMonth.length property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(x in Date.prototype.getMonth) {
|
||||
for(var x in Date.prototype.getMonth) {
|
||||
if(x === "length") {
|
||||
$ERROR('#2: The Date.prototype.getMonth.length has the attribute DontEnum');
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ es5id: 15.9.5.22_A1_T1
|
|||
description: Checking absence of ReadOnly attribute
|
||||
---*/
|
||||
|
||||
x = Date.prototype.getSeconds;
|
||||
var x = Date.prototype.getSeconds;
|
||||
if(x === 1)
|
||||
Date.prototype.getSeconds = 2;
|
||||
else
|
||||
|
|
|
@ -11,7 +11,7 @@ if (Date.prototype.propertyIsEnumerable('getSeconds')) {
|
|||
$ERROR('#1: The Date.prototype.getSeconds property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(x in Date.prototype) {
|
||||
for(var x in Date.prototype) {
|
||||
if(x === "getSeconds") {
|
||||
$ERROR('#2: The Date.prototype.getSeconds has the attribute DontEnum');
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@ info: >
|
|||
DontDelete, DontEnum } attributes
|
||||
es5id: 15.9.5.22_A3_T1
|
||||
description: Checking ReadOnly attribute
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
x = Date.prototype.getSeconds.length;
|
||||
|
|
|
@ -13,7 +13,7 @@ if (Date.prototype.getSeconds.propertyIsEnumerable('length')) {
|
|||
$ERROR('#1: The Date.prototype.getSeconds.length property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(x in Date.prototype.getSeconds) {
|
||||
for(var x in Date.prototype.getSeconds) {
|
||||
if(x === "length") {
|
||||
$ERROR('#2: The Date.prototype.getSeconds.length has the attribute DontEnum');
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ es5id: 15.9.5.9_A1_T1
|
|||
description: Checking absence of ReadOnly attribute
|
||||
---*/
|
||||
|
||||
x = Date.prototype.getTime;
|
||||
var x = Date.prototype.getTime;
|
||||
if(x === 1)
|
||||
Date.prototype.getTime = 2;
|
||||
else
|
||||
|
|
|
@ -11,7 +11,7 @@ if (Date.prototype.propertyIsEnumerable('getTime')) {
|
|||
$ERROR('#1: The Date.prototype.getTime property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(x in Date.prototype) {
|
||||
for(var x in Date.prototype) {
|
||||
if(x === "getTime") {
|
||||
$ERROR('#2: The Date.prototype.getTime has the attribute DontEnum');
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@ info: >
|
|||
DontEnum } attributes
|
||||
es5id: 15.9.5.9_A3_T1
|
||||
description: Checking ReadOnly attribute
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
x = Date.prototype.getTime.length;
|
||||
|
|
|
@ -13,7 +13,7 @@ if (Date.prototype.getTime.propertyIsEnumerable('length')) {
|
|||
$ERROR('#1: The Date.prototype.getTime.length property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(x in Date.prototype.getTime) {
|
||||
for(var x in Date.prototype.getTime) {
|
||||
if(x === "length") {
|
||||
$ERROR('#2: The Date.prototype.getTime.length has the attribute DontEnum');
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@ es5id: 15.9.5.26_A1_T1
|
|||
description: Checking absence of ReadOnly attribute
|
||||
---*/
|
||||
|
||||
x = Date.prototype.getTimezoneOffset;
|
||||
var x = Date.prototype.getTimezoneOffset;
|
||||
if(x === 1)
|
||||
Date.prototype.getTimezoneOffset = 2;
|
||||
else
|
||||
|
|
|
@ -13,7 +13,7 @@ if (Date.prototype.propertyIsEnumerable('getTimezoneOffset')) {
|
|||
$ERROR('#1: The Date.prototype.getTimezoneOffset property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(x in Date.prototype) {
|
||||
for(var x in Date.prototype) {
|
||||
if(x === "getTimezoneOffset") {
|
||||
$ERROR('#2: The Date.prototype.getTimezoneOffset has the attribute DontEnum');
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@ info: >
|
|||
DontDelete, DontEnum } attributes
|
||||
es5id: 15.9.5.26_A3_T1
|
||||
description: Checking ReadOnly attribute
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
x = Date.prototype.getTimezoneOffset.length;
|
||||
|
|
|
@ -13,7 +13,7 @@ if (Date.prototype.getTimezoneOffset.propertyIsEnumerable('length')) {
|
|||
$ERROR('#1: The Date.prototype.getTimezoneOffset.length property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(x in Date.prototype.getTimezoneOffset) {
|
||||
for(var x in Date.prototype.getTimezoneOffset) {
|
||||
if(x === "length") {
|
||||
$ERROR('#2: The Date.prototype.getTimezoneOffset.length has the attribute DontEnum');
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ es5id: 15.9.5.15_A1_T1
|
|||
description: Checking absence of ReadOnly attribute
|
||||
---*/
|
||||
|
||||
x = Date.prototype.getUTCDate;
|
||||
var x = Date.prototype.getUTCDate;
|
||||
if(x === 1)
|
||||
Date.prototype.getUTCDate = 2;
|
||||
else
|
||||
|
|
|
@ -11,7 +11,7 @@ if (Date.prototype.propertyIsEnumerable('getUTCDate')) {
|
|||
$ERROR('#1: The Date.prototype.getUTCDate property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(x in Date.prototype) {
|
||||
for(var x in Date.prototype) {
|
||||
if(x === "getUTCDate") {
|
||||
$ERROR('#2: The Date.prototype.getUTCDate has the attribute DontEnum');
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@ info: >
|
|||
DontDelete, DontEnum } attributes
|
||||
es5id: 15.9.5.15_A3_T1
|
||||
description: Checking ReadOnly attribute
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
x = Date.prototype.getUTCDate.length;
|
||||
|
|
|
@ -13,7 +13,7 @@ if (Date.prototype.getUTCDate.propertyIsEnumerable('length')) {
|
|||
$ERROR('#1: The Date.prototype.getUTCDate.length property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(x in Date.prototype.getUTCDate) {
|
||||
for(var x in Date.prototype.getUTCDate) {
|
||||
if(x === "length") {
|
||||
$ERROR('#2: The Date.prototype.getUTCDate.length has the attribute DontEnum');
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ es5id: 15.9.5.17_A1_T1
|
|||
description: Checking absence of ReadOnly attribute
|
||||
---*/
|
||||
|
||||
x = Date.prototype.getUTCDay;
|
||||
var x = Date.prototype.getUTCDay;
|
||||
if(x === 1)
|
||||
Date.prototype.getUTCDay = 2;
|
||||
else
|
||||
|
|
|
@ -11,7 +11,7 @@ if (Date.prototype.propertyIsEnumerable('getUTCDay')) {
|
|||
$ERROR('#1: The Date.prototype.getUTCDay property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(x in Date.prototype) {
|
||||
for(var x in Date.prototype) {
|
||||
if(x === "getUTCDay") {
|
||||
$ERROR('#2: The Date.prototype.getUTCDay has the attribute DontEnum');
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@ info: >
|
|||
DontDelete, DontEnum } attributes
|
||||
es5id: 15.9.5.17_A3_T1
|
||||
description: Checking ReadOnly attribute
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
x = Date.prototype.getUTCDay.length;
|
||||
|
|
|
@ -13,7 +13,7 @@ if (Date.prototype.getUTCDay.propertyIsEnumerable('length')) {
|
|||
$ERROR('#1: The Date.prototype.getUTCDay.length property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(x in Date.prototype.getUTCDay) {
|
||||
for(var x in Date.prototype.getUTCDay) {
|
||||
if(x === "length") {
|
||||
$ERROR('#2: The Date.prototype.getUTCDay.length has the attribute DontEnum');
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ es5id: 15.9.5.11_A1_T1
|
|||
description: Checking absence of ReadOnly attribute
|
||||
---*/
|
||||
|
||||
x = Date.prototype.getUTCFullYear;
|
||||
var x = Date.prototype.getUTCFullYear;
|
||||
if(x === 1)
|
||||
Date.prototype.getUTCFullYear = 2;
|
||||
else
|
||||
|
|
|
@ -11,7 +11,7 @@ if (Date.prototype.propertyIsEnumerable('getUTCFullYear')) {
|
|||
$ERROR('#1: The Date.prototype.getUTCFullYear property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(x in Date.prototype) {
|
||||
for(var x in Date.prototype) {
|
||||
if(x === "getUTCFullYear") {
|
||||
$ERROR('#2: The Date.prototype.getUTCFullYear has the attribute DontEnum');
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@ info: >
|
|||
DontDelete, DontEnum } attributes
|
||||
es5id: 15.9.5.11_A3_T1
|
||||
description: Checking ReadOnly attribute
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
x = Date.prototype.getUTCFullYear.length;
|
||||
|
|
|
@ -13,7 +13,7 @@ if (Date.prototype.getUTCFullYear.propertyIsEnumerable('length')) {
|
|||
$ERROR('#1: The Date.prototype.getUTCFullYear.length property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(x in Date.prototype.getUTCFullYear) {
|
||||
for(var x in Date.prototype.getUTCFullYear) {
|
||||
if(x === "length") {
|
||||
$ERROR('#2: The Date.prototype.getUTCFullYear.length has the attribute DontEnum');
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ es5id: 15.9.5.19_A1_T1
|
|||
description: Checking absence of ReadOnly attribute
|
||||
---*/
|
||||
|
||||
x = Date.prototype.getUTCHours;
|
||||
var x = Date.prototype.getUTCHours;
|
||||
if(x === 1)
|
||||
Date.prototype.getUTCHours = 2;
|
||||
else
|
||||
|
|
|
@ -11,7 +11,7 @@ if (Date.prototype.propertyIsEnumerable('getUTCHours')) {
|
|||
$ERROR('#1: The Date.prototype.getUTCHours property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(x in Date.prototype) {
|
||||
for(var x in Date.prototype) {
|
||||
if(x === "getUTCHours") {
|
||||
$ERROR('#2: The Date.prototype.getUTCHours has the attribute DontEnum');
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@ info: >
|
|||
DontDelete, DontEnum } attributes
|
||||
es5id: 15.9.5.19_A3_T1
|
||||
description: Checking ReadOnly attribute
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
x = Date.prototype.getUTCHours.length;
|
||||
|
|
|
@ -13,7 +13,7 @@ if (Date.prototype.getUTCHours.propertyIsEnumerable('length')) {
|
|||
$ERROR('#1: The Date.prototype.getUTCHours.length property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(x in Date.prototype.getUTCHours) {
|
||||
for(var x in Date.prototype.getUTCHours) {
|
||||
if(x === "length") {
|
||||
$ERROR('#2: The Date.prototype.getUTCHours.length has the attribute DontEnum');
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@ es5id: 15.9.5.25_A1_T1
|
|||
description: Checking absence of ReadOnly attribute
|
||||
---*/
|
||||
|
||||
x = Date.prototype.getUTCMilliseconds;
|
||||
var x = Date.prototype.getUTCMilliseconds;
|
||||
if(x === 1)
|
||||
Date.prototype.getUTCMilliseconds = 2;
|
||||
else
|
||||
|
|
|
@ -13,7 +13,7 @@ if (Date.prototype.propertyIsEnumerable('getUTCMilliseconds')) {
|
|||
$ERROR('#1: The Date.prototype.getUTCMilliseconds property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(x in Date.prototype) {
|
||||
for(var x in Date.prototype) {
|
||||
if(x === "getUTCMilliseconds") {
|
||||
$ERROR('#2: The Date.prototype.getUTCMilliseconds has the attribute DontEnum');
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@ info: >
|
|||
DontDelete, DontEnum } attributes
|
||||
es5id: 15.9.5.25_A3_T1
|
||||
description: Checking ReadOnly attribute
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
x = Date.prototype.getUTCMilliseconds.length;
|
||||
|
|
|
@ -13,7 +13,7 @@ if (Date.prototype.getUTCMilliseconds.propertyIsEnumerable('length')) {
|
|||
$ERROR('#1: The Date.prototype.getUTCMilliseconds.length property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(x in Date.prototype.getUTCMilliseconds) {
|
||||
for(var x in Date.prototype.getUTCMilliseconds) {
|
||||
if(x === "length") {
|
||||
$ERROR('#2: The Date.prototype.getUTCMilliseconds.length has the attribute DontEnum');
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ es5id: 15.9.5.21_A1_T1
|
|||
description: Checking absence of ReadOnly attribute
|
||||
---*/
|
||||
|
||||
x = Date.prototype.getUTCMinutes;
|
||||
var x = Date.prototype.getUTCMinutes;
|
||||
if(x === 1)
|
||||
Date.prototype.getUTCMinutes = 2;
|
||||
else
|
||||
|
|
|
@ -11,7 +11,7 @@ if (Date.prototype.propertyIsEnumerable('getUTCMinutes')) {
|
|||
$ERROR('#1: The Date.prototype.getUTCMinutes property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(x in Date.prototype) {
|
||||
for(var x in Date.prototype) {
|
||||
if(x === "getUTCMinutes") {
|
||||
$ERROR('#2: The Date.prototype.getUTCMinutes has the attribute DontEnum');
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@ info: >
|
|||
DontDelete, DontEnum } attributes
|
||||
es5id: 15.9.5.21_A3_T1
|
||||
description: Checking ReadOnly attribute
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
x = Date.prototype.getUTCMinutes.length;
|
||||
|
|
|
@ -13,7 +13,7 @@ if (Date.prototype.getUTCMinutes.propertyIsEnumerable('length')) {
|
|||
$ERROR('#1: The Date.prototype.getUTCMinutes.length property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(x in Date.prototype.getUTCMinutes) {
|
||||
for(var x in Date.prototype.getUTCMinutes) {
|
||||
if(x === "length") {
|
||||
$ERROR('#2: The Date.prototype.getUTCMinutes.length has the attribute DontEnum');
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ es5id: 15.9.5.13_A1_T1
|
|||
description: Checking absence of ReadOnly attribute
|
||||
---*/
|
||||
|
||||
x = Date.prototype.getUTCMonth;
|
||||
var x = Date.prototype.getUTCMonth;
|
||||
if(x === 1)
|
||||
Date.prototype.getUTCMonth = 2;
|
||||
else
|
||||
|
|
|
@ -11,7 +11,7 @@ if (Date.prototype.propertyIsEnumerable('getUTCMonth')) {
|
|||
$ERROR('#1: The Date.prototype.getUTCMonth property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(x in Date.prototype) {
|
||||
for(var x in Date.prototype) {
|
||||
if(x === "getUTCMonth") {
|
||||
$ERROR('#2: The Date.prototype.getUTCMonth has the attribute DontEnum');
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@ info: >
|
|||
DontDelete, DontEnum } attributes
|
||||
es5id: 15.9.5.13_A3_T1
|
||||
description: Checking ReadOnly attribute
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
x = Date.prototype.getUTCMonth.length;
|
||||
|
|
|
@ -13,7 +13,7 @@ if (Date.prototype.getUTCMonth.propertyIsEnumerable('length')) {
|
|||
$ERROR('#1: The Date.prototype.getUTCMonth.length property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(x in Date.prototype.getUTCMonth) {
|
||||
for(var x in Date.prototype.getUTCMonth) {
|
||||
if(x === "length") {
|
||||
$ERROR('#2: The Date.prototype.getUTCMonth.length has the attribute DontEnum');
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ es5id: 15.9.5.23_A1_T1
|
|||
description: Checking absence of ReadOnly attribute
|
||||
---*/
|
||||
|
||||
x = Date.prototype.getUTCSeconds;
|
||||
var x = Date.prototype.getUTCSeconds;
|
||||
if(x === 1)
|
||||
Date.prototype.getUTCSeconds = 2;
|
||||
else
|
||||
|
|
|
@ -11,7 +11,7 @@ if (Date.prototype.propertyIsEnumerable('getUTCSeconds')) {
|
|||
$ERROR('#1: The Date.prototype.getUTCSeconds property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(x in Date.prototype) {
|
||||
for(var x in Date.prototype) {
|
||||
if(x === "getUTCSeconds") {
|
||||
$ERROR('#2: The Date.prototype.getUTCSeconds has the attribute DontEnum');
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@ info: >
|
|||
DontDelete, DontEnum } attributes
|
||||
es5id: 15.9.5.23_A3_T1
|
||||
description: Checking ReadOnly attribute
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
x = Date.prototype.getUTCSeconds.length;
|
||||
|
|
|
@ -13,7 +13,7 @@ if (Date.prototype.getUTCSeconds.propertyIsEnumerable('length')) {
|
|||
$ERROR('#1: The Date.prototype.getUTCSeconds.length property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(x in Date.prototype.getUTCSeconds) {
|
||||
for(var x in Date.prototype.getUTCSeconds) {
|
||||
if(x === "length") {
|
||||
$ERROR('#2: The Date.prototype.getUTCSeconds.length has the attribute DontEnum');
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ es5id: 15.9.5.36_A1_T1
|
|||
description: Checking absence of ReadOnly attribute
|
||||
---*/
|
||||
|
||||
x = Date.prototype.setDate;
|
||||
var x = Date.prototype.setDate;
|
||||
if(x === 1)
|
||||
Date.prototype.setDate = 2;
|
||||
else
|
||||
|
|
|
@ -11,7 +11,7 @@ if (Date.prototype.propertyIsEnumerable('setDate')) {
|
|||
$ERROR('#1: The Date.prototype.setDate property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(x in Date.prototype) {
|
||||
for(var x in Date.prototype) {
|
||||
if(x === "setDate") {
|
||||
$ERROR('#2: The Date.prototype.setDate has the attribute DontEnum');
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@ info: >
|
|||
DontEnum } attributes
|
||||
es5id: 15.9.5.36_A3_T1
|
||||
description: Checking ReadOnly attribute
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
x = Date.prototype.setDate.length;
|
||||
|
|
|
@ -13,7 +13,7 @@ if (Date.prototype.setDate.propertyIsEnumerable('length')) {
|
|||
$ERROR('#1: The Date.prototype.setDate.length property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(x in Date.prototype.setDate) {
|
||||
for(var x in Date.prototype.setDate) {
|
||||
if(x === "length") {
|
||||
$ERROR('#2: The Date.prototype.setDate.length has the attribute DontEnum');
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ es5id: 15.9.5.40_A1_T1
|
|||
description: Checking absence of ReadOnly attribute
|
||||
---*/
|
||||
|
||||
x = Date.prototype.setFullYear;
|
||||
var x = Date.prototype.setFullYear;
|
||||
if(x === 1)
|
||||
Date.prototype.setFullYear = 2;
|
||||
else
|
||||
|
|
|
@ -11,7 +11,7 @@ if (Date.prototype.propertyIsEnumerable('setFullYear')) {
|
|||
$ERROR('#1: The Date.prototype.setFullYear property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(x in Date.prototype) {
|
||||
for(var x in Date.prototype) {
|
||||
if(x === "setFullYear") {
|
||||
$ERROR('#2: The Date.prototype.setFullYear has the attribute DontEnum');
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@ info: >
|
|||
DontDelete, DontEnum } attributes
|
||||
es5id: 15.9.5.40_A3_T1
|
||||
description: Checking ReadOnly attribute
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
x = Date.prototype.setFullYear.length;
|
||||
|
|
|
@ -13,7 +13,7 @@ if (Date.prototype.setFullYear.propertyIsEnumerable('length')) {
|
|||
$ERROR('#1: The Date.prototype.setFullYear.length property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(x in Date.prototype.setFullYear) {
|
||||
for(var x in Date.prototype.setFullYear) {
|
||||
if(x === "length") {
|
||||
$ERROR('#2: The Date.prototype.setFullYear.length has the attribute DontEnum');
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ es5id: 15.9.5.34_A1_T1
|
|||
description: Checking absence of ReadOnly attribute
|
||||
---*/
|
||||
|
||||
x = Date.prototype.setHours;
|
||||
var x = Date.prototype.setHours;
|
||||
if(x === 1)
|
||||
Date.prototype.setHours = 2;
|
||||
else
|
||||
|
|
|
@ -11,7 +11,7 @@ if (Date.prototype.propertyIsEnumerable('setHours')) {
|
|||
$ERROR('#1: The Date.prototype.setHours property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(x in Date.prototype) {
|
||||
for(var x in Date.prototype) {
|
||||
if(x === "setHours") {
|
||||
$ERROR('#2: The Date.prototype.setHours has the attribute DontEnum');
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@ info: >
|
|||
DontEnum } attributes
|
||||
es5id: 15.9.5.34_A3_T1
|
||||
description: Checking ReadOnly attribute
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
x = Date.prototype.setHours.length;
|
||||
|
|
|
@ -13,7 +13,7 @@ if (Date.prototype.setHours.propertyIsEnumerable('length')) {
|
|||
$ERROR('#1: The Date.prototype.setHours.length property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(x in Date.prototype.setHours) {
|
||||
for(var x in Date.prototype.setHours) {
|
||||
if(x === "length") {
|
||||
$ERROR('#2: The Date.prototype.setHours.length has the attribute DontEnum');
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ es5id: 15.9.5.28_A1_T1
|
|||
description: Checking absence of ReadOnly attribute
|
||||
---*/
|
||||
|
||||
x = Date.prototype.setMilliseconds;
|
||||
var x = Date.prototype.setMilliseconds;
|
||||
if(x === 1)
|
||||
Date.prototype.setMilliseconds = 2;
|
||||
else
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue