summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-18.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-18.js')
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-18.js16
1 files changed, 10 insertions, 6 deletions
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-18.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-18.js
index 3b073f019..3cf057a31 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-18.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-18.js
@@ -9,13 +9,17 @@ description: >
object when T is not an object (T is a string)
---*/
- var result = false;
- function callbackfn(val, idx, obj) {
- result = ('hello' === this.valueOf());
- }
+var result = false;
- var obj = { 0: 11, length: 2 };
+function callbackfn(val, idx, obj) {
+ result = ('hello' === this.valueOf());
+}
- Array.prototype.forEach.call(obj, callbackfn, "hello");
+var obj = {
+ 0: 11,
+ length: 2
+};
+
+Array.prototype.forEach.call(obj, callbackfn, "hello");
assert(result, 'result !== true');