summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-10.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-10.js')
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-10.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-10.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-10.js
index 4e44bb713..1f6e4baa3 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-10.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-10.js
@@ -9,11 +9,12 @@ description: >
parameter
---*/
- var result = false;
- function callbackfn(val) {
- result = (val > 10);
- }
+var result = false;
- [11].forEach(callbackfn);
+function callbackfn(val) {
+ result = (val > 10);
+}
+
+[11].forEach(callbackfn);
assert(result, 'result !== true');