diff options
Diffstat (limited to 'test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-14.js')
-rw-r--r-- | test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-14.js | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-14.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-14.js index b3133a5bc..265667e71 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-14.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-14.js @@ -10,22 +10,20 @@ description: > Array-like object ---*/ -var obj = { - length: 1 -}; + var obj = { length: 1 }; -Object.defineProperty(Object.prototype, "0", { - get: function() { - return false; - }, - configurable: true -}); + Object.defineProperty(Object.prototype, "0", { + get: function () { + return false; + }, + configurable: true + }); -Object.defineProperty(obj, "0", { - get: function() { - return true; - }, - configurable: true -}); + Object.defineProperty(obj, "0", { + get: function () { + return true; + }, + configurable: true + }); assert.sameValue(Array.prototype.indexOf.call(obj, true), 0, 'Array.prototype.indexOf.call(obj, true)'); |