summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/forEach/15.4.4.18-3-16.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/forEach/15.4.4.18-3-16.js')
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-3-16.js16
1 files changed, 10 insertions, 6 deletions
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-16.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-16.js
index e6f77c16a..439583682 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-16.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-16.js
@@ -9,14 +9,18 @@ description: >
number
---*/
- var testResult = false;
+var testResult = false;
- function callbackfn(val, idx, obj) {
- testResult = (val > 10);
- }
+function callbackfn(val, idx, obj) {
+ testResult = (val > 10);
+}
- var obj = { 1: 11, 2: 9, length: "0x0002" };
+var obj = {
+ 1: 11,
+ 2: 9,
+ length: "0x0002"
+};
- Array.prototype.forEach.call(obj, callbackfn);
+Array.prototype.forEach.call(obj, callbackfn);
assert(testResult, 'testResult !== true');