diff options
Diffstat (limited to 'test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-22.js')
-rw-r--r-- | test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-22.js | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-22.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-22.js index 9624defeb..69aa3c8f9 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-22.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-22.js @@ -10,26 +10,26 @@ description: > return primitive values ---*/ - var toStringAccessed = false; - var valueOfAccessed = false; +var toStringAccessed = false; +var valueOfAccessed = false; - var obj = { - 1: true, - length: { - toString: function () { - toStringAccessed = true; - return {}; - }, +var obj = { + 1: true, + length: { + toString: function() { + toStringAccessed = true; + return {}; + }, - valueOf: function () { - valueOfAccessed = true; - return {}; - } - } - }; + valueOf: function() { + valueOfAccessed = true; + return {}; + } + } +}; assert.throws(TypeError, function() { - Array.prototype.lastIndexOf.call(obj, true); + Array.prototype.lastIndexOf.call(obj, true); }); assert(toStringAccessed, 'toStringAccessed'); |