diff options
Diffstat (limited to 'test/built-ins/Array/prototype/filter/15.4.4.20-9-b-15.js')
-rw-r--r-- | test/built-ins/Array/prototype/filter/15.4.4.20-9-b-15.js | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-15.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-15.js index 1f87dab30..4e253c64e 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-15.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-15.js @@ -9,27 +9,27 @@ description: > property causes prototype index property to be visited ---*/ -function callbackfn(val, idx, obj) { - return true; -} -var arr = [0, 1, 2]; + function callbackfn(val, idx, obj) { + return true; + } + var arr = [0, 1, 2]; -Object.defineProperty(Array.prototype, "2", { - get: function() { - return "prototype"; - }, - configurable: true -}); + Object.defineProperty(Array.prototype, "2", { + get: function () { + return "prototype"; + }, + configurable: true + }); -Object.defineProperty(arr, "1", { - get: function() { - arr.length = 2; - return 1; - }, - configurable: true -}); + Object.defineProperty(arr, "1", { + get: function () { + arr.length = 2; + return 1; + }, + configurable: true + }); -var newArr = arr.filter(callbackfn); + var newArr = arr.filter(callbackfn); assert.sameValue(newArr.length, 3, 'newArr.length'); assert.sameValue(newArr[2], "prototype", 'newArr[2]'); |