diff options
author | André Bargull <andre.bargull@gmail.com> | 2015-04-29 17:36:28 +0200 |
---|---|---|
committer | André Bargull <andre.bargull@gmail.com> | 2015-04-29 17:36:28 +0200 |
commit | 74dde3e483575d9b3a461175538c23af48d1fbe5 (patch) | |
tree | 4e7971d3639b3a1a0658a332d480e5ebd4ec4fe3 /test/built-ins/Array/prototype/reduceRight | |
parent | 87fd4e56993a93b46f9c72809ebe161b5b9f6fb6 (diff) | |
download | qtdeclarative-testsuites-74dde3e483575d9b3a461175538c23af48d1fbe5.tar.gz |
Fix strict mode errors in built-ins/Array
- Add missing "var" declarations and noStrict flags
- Move code which requires non-strict semantics from Array.prototype.find_this-arg.js to Array.prototype.find_this-arg-receiver-primitive.js
- Remove duplicate code from Array.prototype.findIndex_this-arg.js, already present in Array.prototype.findIndex_this-arg-receiver-primitive.js
- Remove test code from Array.of_assignment-to-new-object-length.js, does not work in strict mode
Part of issue #35
Diffstat (limited to 'test/built-ins/Array/prototype/reduceRight')
-rw-r--r-- | test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-16.js | 1 | ||||
-rw-r--r-- | test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-29.js | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-16.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-16.js index 01188a215..e915d6ca1 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-16.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-16.js @@ -9,6 +9,7 @@ es5id: 15.4.4.22-9-b-16 description: > Array.prototype.reduceRight - decreasing length of array in step 8 does not delete non-configurable properties +flags: [noStrict] includes: [runTestCase.js] ---*/ diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-29.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-29.js index ecfd07d64..129db4bfe 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-29.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-29.js @@ -9,6 +9,7 @@ es5id: 15.4.4.22-9-b-29 description: > Array.prototype.reduceRight - decreasing length of array does not delete non-configurable properties +flags: [noStrict] includes: [runTestCase.js] ---*/ |