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