summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-10.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-10.js')
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-10.js13
1 files changed, 3 insertions, 10 deletions
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-10.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-10.js
index 0467957d7..8054929e9 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-10.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-10.js
@@ -7,11 +7,8 @@ description: >
Array.prototype.reduceRight - deleting property of prototype in
step 8 causes deleted index property not to be visited on an
Array-like Object
-includes: [runTestCase.js]
---*/
-function testcase() {
-
var accessed = false;
var testResult = true;
@@ -32,12 +29,8 @@ function testcase() {
configurable: true
});
- try {
Object.prototype[3] = 1;
Array.prototype.reduceRight.call(obj, callbackfn);
- return testResult && accessed;
- } finally {
- delete Object.prototype[3];
- }
- }
-runTestCase(testcase);
+
+assert(testResult, 'testResult !== true');
+assert(accessed, 'accessed !== true');