diff options
Diffstat (limited to 'test/built-ins/Array/prototype/indexOf/15.4.4.14-2-10.js')
-rw-r--r-- | test/built-ins/Array/prototype/indexOf/15.4.4.14-2-10.js | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-10.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-10.js index f4c6f0b83..bde4a7b79 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-10.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-10.js @@ -7,21 +7,21 @@ es5id: 15.4.4.14-2-10 description: Array.prototype.indexOf - 'length' is inherited accessor property ---*/ - var proto = {}; - Object.defineProperty(proto, "length", { - get: function () { - return 2; - }, - configurable: true - }); +var proto = {}; +Object.defineProperty(proto, "length", { + get: function() { + return 2; + }, + configurable: true +}); - var Con = function () {}; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var childOne = new Con(); - childOne[1] = true; - var childTwo = new Con(); - childTwo[2] = true; +var childOne = new Con(); +childOne[1] = true; +var childTwo = new Con(); +childTwo[2] = true; assert.sameValue(Array.prototype.indexOf.call(childOne, true), 1, 'Array.prototype.indexOf.call(childOne, true)'); assert.sameValue(Array.prototype.indexOf.call(childTwo, true), -1, 'Array.prototype.indexOf.call(childTwo, true)'); |