summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/forEach/15.4.4.18-1-9.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/forEach/15.4.4.18-1-9.js')
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-1-9.js21
1 files changed, 11 insertions, 10 deletions
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-9.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-9.js
index 24024487f..38cd91443 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-9.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-9.js
@@ -7,17 +7,18 @@ es5id: 15.4.4.18-1-9
description: Array.prototype.forEach applied to Function object
---*/
- var result = false;
- function callbackfn(val, idx, obj) {
- result = obj instanceof Function;
- }
+var result = false;
- var obj = function (a, b) {
- return a + b;
- };
- obj[0] = 11;
- obj[1] = 9;
+function callbackfn(val, idx, obj) {
+ result = obj instanceof Function;
+}
- Array.prototype.forEach.call(obj, callbackfn);
+var obj = function(a, b) {
+ return a + b;
+};
+obj[0] = 11;
+obj[1] = 9;
+
+Array.prototype.forEach.call(obj, callbackfn);
assert(result, 'result !== true');