summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/forEach/15.4.4.18-8-3.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/forEach/15.4.4.18-8-3.js')
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-8-3.js9
1 files changed, 2 insertions, 7 deletions
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-3.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-3.js
index 2d9e5be25..ea5a05018 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-3.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-3.js
@@ -6,10 +6,8 @@ es5id: 15.4.4.18-8-3
description: >
Array.prototype.forEach doesn't call callbackfn if 'length' is 0
(subclassed Array, length overridden to false (type conversion))
-includes: [runTestCase.js]
---*/
-function testcase() {
foo.prototype = new Array(1, 2, 3);
function foo() {}
var f = new foo();
@@ -18,8 +16,5 @@ function testcase() {
var callCnt = 0;
function cb(){callCnt++}
var i = f.forEach(cb);
- if (callCnt === 0) {
- return true;
- }
- }
-runTestCase(testcase);
+
+assert.sameValue(callCnt, 0, 'callCnt');