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