summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/forEach/15.4.4.18-5-11.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/forEach/15.4.4.18-5-11.js')
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-5-11.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-11.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-11.js
index 0f0e203b3..9975fe11c 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-11.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-11.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.18-5-11
description: Array.prototype.forEach - String Object can be used as thisArg
---*/
- var result = false;
- var objString = new String();
+var result = false;
+var objString = new String();
- function callbackfn(val, idx, obj) {
- result = (this === objString);
- }
+function callbackfn(val, idx, obj) {
+ result = (this === objString);
+}
- [11].forEach(callbackfn, objString);
+[11].forEach(callbackfn, objString);
assert(result, 'result !== true');