mirror of https://github.com/tc39/test262.git
Fix strict mode errors in built-ins/Number
Add missing "var" declarations and noStrict flags. Part of issue #35.
This commit is contained in:
parent
87fd4e5699
commit
81a7177ff1
|
@ -5,6 +5,7 @@
|
|||
info: Number.MAX_VALUE is ReadOnly
|
||||
es5id: 15.7.3.2_A2
|
||||
description: Checking if varying Number.MAX_VALUE fails
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
info: Number.MIN_VALUE is ReadOnly
|
||||
es5id: 15.7.3.3_A2
|
||||
description: Checking if varying Number.MIN_VALUE fails
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
info: Number.NEGATIVE_INFINITY is ReadOnly
|
||||
es5id: 15.7.3.5_A2
|
||||
description: Checking if varying Number.NEGATIVE_INFINITY fails
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
info: Number.NaN is ReadOnly
|
||||
es5id: 15.7.3.4_A2
|
||||
description: Checking if varying Number.NaN fails
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
info: Number.POSITIVE_INFINITY is ReadOnly
|
||||
es5id: 15.7.3.6_A2
|
||||
description: Checking if varying Number.POSITIVE_INFINITY fails
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
|
|
|
@ -7,6 +7,7 @@ info: >
|
|||
attributes
|
||||
es5id: 15.7.3.1_A1_T1
|
||||
description: Checking if varying the Number.prototype property fails
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
|
|
|
@ -13,7 +13,7 @@ if (Number.propertyIsEnumerable('prototype')) {
|
|||
$ERROR('#1: The Number.prototype property has the attribute DontEnum');
|
||||
}
|
||||
|
||||
for(x in Number) {
|
||||
for(var x in Number) {
|
||||
if(x === "prototype") {
|
||||
$ERROR('#2: The Number.prototype has the attribute DontEnum');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue