mirror of https://github.com/tc39/test262.git
Fix strict mode errors in built-ins/{isFinite, isNaN, parseFloat, parseInt, undefined}
- Add missing "var" declarations and noStrict flags - Remove invalid noStrict flags Part of issue #35.
This commit is contained in:
parent
87fd4e5699
commit
10d6e7ce0c
|
@ -14,7 +14,7 @@ if (isFinite.propertyIsEnumerable('length') !== false) {
|
|||
|
||||
//CHECK#2
|
||||
var result = true;
|
||||
for (p in isFinite){
|
||||
for (var p in isFinite){
|
||||
if (p === "length") {
|
||||
result = false;
|
||||
}
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
info: The length property of isFinite does not have the attribute DontDelete
|
||||
es5id: 15.1.2.5_A2.2
|
||||
description: Checking use hasOwnProperty, delete
|
||||
flags: [noStrict]
|
||||
includes: [$FAIL.js]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ if (this.propertyIsEnumerable('isFinite') !== false) {
|
|||
|
||||
//CHECK#2
|
||||
var result = true;
|
||||
for (p in this){
|
||||
for (var p in this){
|
||||
if (p === "isFinite") {
|
||||
result = false;
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@ if (isNaN.propertyIsEnumerable('length') !== false) {
|
|||
|
||||
//CHECK#2
|
||||
var result = true;
|
||||
for (p in isNaN){
|
||||
for (var p in isNaN){
|
||||
if (p === "length") {
|
||||
result = false;
|
||||
}
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
info: The length property of isNaN does not have the attribute DontDelete
|
||||
es5id: 15.1.2.4_A2.2
|
||||
description: Checking use hasOwnProperty, delete
|
||||
flags: [noStrict]
|
||||
includes: [$FAIL.js]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ if (this.propertyIsEnumerable('isNaN') !== false) {
|
|||
|
||||
//CHECK#2
|
||||
var result = true;
|
||||
for (p in this){
|
||||
for (var p in this){
|
||||
if (p === "isNaN") {
|
||||
result = false;
|
||||
}
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
info: The length property of parseFloat does not have the attribute DontDelete
|
||||
es5id: 15.1.2.3_A7.2
|
||||
description: Checking use hasOwnProperty, delete
|
||||
flags: [noStrict]
|
||||
includes: [$FAIL.js]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
info: The length property of parseInt does not have the attribute DontDelete
|
||||
es5id: 15.1.2.2_A9.2
|
||||
description: Checking use hasOwnProperty, delete
|
||||
flags: [noStrict]
|
||||
includes: [$FAIL.js]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@ es5id: 15.1.1.3-3
|
|||
description: >
|
||||
undefined is not writable, simple assignment should return the
|
||||
rval value (11.13.1-6)
|
||||
flags: [noStrict]
|
||||
includes: [runTestCase.js]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ description: Use for-in statement
|
|||
---*/
|
||||
|
||||
// CHECK#1
|
||||
for (prop in this) {
|
||||
for (var prop in this) {
|
||||
if (prop === "undefined") {
|
||||
$ERROR('#1: The undefined is DontEnum');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue