mirror of
https://github.com/tc39/test262.git
synced 2025-07-25 06:55:06 +02:00
Merge pull request #248 from anba/issue-35/builtins-Number
Fix strict mode errors in built-ins/Number
This commit is contained in:
commit
b8846db038
@ -5,6 +5,7 @@
|
|||||||
info: Number.MAX_VALUE is ReadOnly
|
info: Number.MAX_VALUE is ReadOnly
|
||||||
es5id: 15.7.3.2_A2
|
es5id: 15.7.3.2_A2
|
||||||
description: Checking if varying Number.MAX_VALUE fails
|
description: Checking if varying Number.MAX_VALUE fails
|
||||||
|
flags: [noStrict]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
// CHECK#1
|
// CHECK#1
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
info: Number.MIN_VALUE is ReadOnly
|
info: Number.MIN_VALUE is ReadOnly
|
||||||
es5id: 15.7.3.3_A2
|
es5id: 15.7.3.3_A2
|
||||||
description: Checking if varying Number.MIN_VALUE fails
|
description: Checking if varying Number.MIN_VALUE fails
|
||||||
|
flags: [noStrict]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
// CHECK#1
|
// CHECK#1
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
info: Number.NEGATIVE_INFINITY is ReadOnly
|
info: Number.NEGATIVE_INFINITY is ReadOnly
|
||||||
es5id: 15.7.3.5_A2
|
es5id: 15.7.3.5_A2
|
||||||
description: Checking if varying Number.NEGATIVE_INFINITY fails
|
description: Checking if varying Number.NEGATIVE_INFINITY fails
|
||||||
|
flags: [noStrict]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
// CHECK#1
|
// CHECK#1
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
info: Number.NaN is ReadOnly
|
info: Number.NaN is ReadOnly
|
||||||
es5id: 15.7.3.4_A2
|
es5id: 15.7.3.4_A2
|
||||||
description: Checking if varying Number.NaN fails
|
description: Checking if varying Number.NaN fails
|
||||||
|
flags: [noStrict]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
// CHECK#1
|
// CHECK#1
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
info: Number.POSITIVE_INFINITY is ReadOnly
|
info: Number.POSITIVE_INFINITY is ReadOnly
|
||||||
es5id: 15.7.3.6_A2
|
es5id: 15.7.3.6_A2
|
||||||
description: Checking if varying Number.POSITIVE_INFINITY fails
|
description: Checking if varying Number.POSITIVE_INFINITY fails
|
||||||
|
flags: [noStrict]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
// CHECK#1
|
// CHECK#1
|
||||||
|
@ -7,6 +7,7 @@ info: >
|
|||||||
attributes
|
attributes
|
||||||
es5id: 15.7.3.1_A1_T1
|
es5id: 15.7.3.1_A1_T1
|
||||||
description: Checking if varying the Number.prototype property fails
|
description: Checking if varying the Number.prototype property fails
|
||||||
|
flags: [noStrict]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
//CHECK#1
|
//CHECK#1
|
||||||
|
@ -13,7 +13,7 @@ if (Number.propertyIsEnumerable('prototype')) {
|
|||||||
$ERROR('#1: The Number.prototype property has the attribute DontEnum');
|
$ERROR('#1: The Number.prototype property has the attribute DontEnum');
|
||||||
}
|
}
|
||||||
|
|
||||||
for(x in Number) {
|
for(var x in Number) {
|
||||||
if(x === "prototype") {
|
if(x === "prototype") {
|
||||||
$ERROR('#2: The Number.prototype has the attribute DontEnum');
|
$ERROR('#2: The Number.prototype has the attribute DontEnum');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user