summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-16.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-16.js')
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-16.js52
1 files changed, 26 insertions, 26 deletions
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-16.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-16.js
index 864b5aac6..c337ed6a7 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-16.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-16.js
@@ -10,31 +10,31 @@ description: >
flags: [noStrict]
---*/
-var testResult = false;
-
-function callbackfn(val, idx, obj) {
- if (idx === 2 && val === "unconfigurable") {
- testResult = true;
- }
-}
-
-var arr = [0, 1, 2];
-
-Object.defineProperty(arr, "2", {
- get: function() {
- return "unconfigurable";
- },
- configurable: false
-});
-
-Object.defineProperty(arr, "1", {
- get: function() {
- arr.length = 2;
- return 1;
- },
- configurable: true
-});
-
-arr.forEach(callbackfn);
+ var testResult = false;
+
+ function callbackfn(val, idx, obj) {
+ if (idx === 2 && val === "unconfigurable") {
+ testResult = true;
+ }
+ }
+
+ var arr = [0, 1, 2];
+
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ return "unconfigurable";
+ },
+ configurable: false
+ });
+
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ arr.length = 2;
+ return 1;
+ },
+ configurable: true
+ });
+
+ arr.forEach(callbackfn);
assert(testResult, 'testResult !== true');