diff options
Diffstat (limited to 'test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-28.js')
-rw-r--r-- | test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-28.js | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-28.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-28.js index ca2a6f902..7bf828719 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-28.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-28.js @@ -9,35 +9,35 @@ description: > iterations is observed on an Array ---*/ -var preIterVisible = false; -var arr = []; -var testResult = false; + var preIterVisible = false; + var arr = []; + var testResult = false; -function callbackfn(val, idx, obj) { - if (idx === 1) { - testResult = (val === 9); - } -} + function callbackfn(val, idx, obj) { + if (idx === 1) { + testResult = (val === 9); + } + } -Object.defineProperty(arr, "0", { - get: function() { - preIterVisible = true; - return 11; - }, - configurable: true -}); + Object.defineProperty(arr, "0", { + get: function () { + preIterVisible = true; + return 11; + }, + configurable: true + }); -Object.defineProperty(arr, "1", { - get: function() { - if (preIterVisible) { - return 9; - } else { - return 13; - } - }, - configurable: true -}); + Object.defineProperty(arr, "1", { + get: function () { + if (preIterVisible) { + return 9; + } else { + return 13; + } + }, + configurable: true + }); -arr.forEach(callbackfn); + arr.forEach(callbackfn); assert(testResult, 'testResult !== true'); |