diff options
Diffstat (limited to 'test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-13.js')
-rw-r--r-- | test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-13.js | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-13.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-13.js index f45f555cf..2390e6e7f 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-13.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-13.js @@ -9,19 +9,16 @@ description: > prototype index property not to be visited on an Array-like Object ---*/ -var arr = { - 2: 2, - length: 20 -}; + var arr = { 2: 2, length: 20 }; -Object.defineProperty(arr, "0", { - get: function() { - delete Object.prototype[1]; - return 0; - }, - configurable: true -}); + Object.defineProperty(arr, "0", { + get: function () { + delete Object.prototype[1]; + return 0; + }, + configurable: true + }); -Object.prototype[1] = 1; + Object.prototype[1] = 1; assert.sameValue(Array.prototype.indexOf.call(arr, 1), -1, 'Array.prototype.indexOf.call(arr, 1)'); |