summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-22.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-22.js')
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-22.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-22.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-22.js
index baf2b2bcf..c3ccfca7b 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-22.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-22.js
@@ -9,19 +9,19 @@ description: >
accessor property without a get function on an Array
---*/
- var testResult = false;
+var testResult = false;
- function callbackfn(val, idx, obj) {
- if (idx === 0) {
- testResult = (typeof val === "undefined");
- }
- }
+function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ testResult = (typeof val === "undefined");
+ }
+}
- Object.defineProperty(Array.prototype, "0", {
- set: function () { },
- configurable: true
- });
+Object.defineProperty(Array.prototype, "0", {
+ set: function() {},
+ configurable: true
+});
- [, 1].forEach(callbackfn);
+[, 1].forEach(callbackfn);
assert(testResult, 'testResult !== true');