summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/forEach/15.4.4.18-1-11.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/forEach/15.4.4.18-1-11.js')
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-1-11.js17
1 files changed, 9 insertions, 8 deletions
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-11.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-11.js
index 2ec98784d..8d30c99da 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-11.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-11.js
@@ -7,15 +7,16 @@ es5id: 15.4.4.18-1-11
description: Array.prototype.forEach applied to Date object
---*/
- var result = false;
- function callbackfn(val, idx, obj) {
- result = obj instanceof Date;
- }
+var result = false;
- var obj = new Date();
- obj.length = 1;
- obj[0] = 1;
+function callbackfn(val, idx, obj) {
+ result = obj instanceof Date;
+}
- Array.prototype.forEach.call(obj, callbackfn);
+var obj = new Date();
+obj.length = 1;
+obj[0] = 1;
+
+Array.prototype.forEach.call(obj, callbackfn);
assert(result, 'result !== true');