summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/forEach/15.4.4.18-5-21.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/forEach/15.4.4.18-5-21.js')
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-5-21.js11
1 files changed, 3 insertions, 8 deletions
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-21.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-21.js
index 9c148b8d8..a33397907 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-21.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-21.js
@@ -4,19 +4,14 @@
/*---
es5id: 15.4.4.18-5-21
description: Array.prototype.forEach - the global object can be used as thisArg
-includes:
- - runTestCase.js
- - fnGlobalObject.js
+includes: [fnGlobalObject.js]
---*/
-function testcase() {
-
var result = false;
function callbackfn(val, idx, obj) {
result = (this === fnGlobalObject());
}
[11].forEach(callbackfn, fnGlobalObject());
- return result;
- }
-runTestCase(testcase);
+
+assert(result, 'result !== true');