diff options
Diffstat (limited to 'test/built-ins/Array/prototype/indexOf/15.4.4.14-3-19.js')
-rw-r--r-- | test/built-ins/Array/prototype/indexOf/15.4.4.14-3-19.js | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-19.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-19.js index 17a3c545a..b770f0577 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-19.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-19.js @@ -9,22 +9,22 @@ description: > an own toString method. ---*/ - // objects inherit the default valueOf() method from Object - // that simply returns itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. +// objects inherit the default valueOf() method from Object +// that simply returns itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. - var obj = { - 1: true, - 2: 2, +var obj = { + 1: true, + 2: 2, - length: { - toString: function () { - return '2'; - } - } - }; + length: { + toString: function() { + return '2'; + } + } +}; assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)'); assert.sameValue(Array.prototype.indexOf.call(obj, 2), -1, 'Array.prototype.indexOf.call(obj, 2)'); |