diff options
Diffstat (limited to 'test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-20.js')
-rw-r--r-- | test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-20.js | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-20.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-20.js index 56508fe50..793084e9e 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-20.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-20.js @@ -10,23 +10,23 @@ description: > accessor property on an Array-like object ---*/ - var proto = {}; - Object.defineProperty(proto, "0", { - get: function () { - return 2; - }, - configurable: true - }); +var proto = {}; +Object.defineProperty(proto, "0", { + get: function() { + return 2; + }, + configurable: true +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child.length = 1; +var child = new Con(); +child.length = 1; - Object.defineProperty(child, "0", { - set: function () { }, - configurable: true - }); +Object.defineProperty(child, "0", { + set: function() {}, + configurable: true +}); assert.sameValue(Array.prototype.indexOf.call(child, undefined), 0, 'Array.prototype.indexOf.call(child, undefined)'); |