diff options
Diffstat (limited to 'test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-31.js')
-rw-r--r-- | test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-31.js | 34 |
1 files changed, 16 insertions, 18 deletions
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-31.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-31.js index 0d46b3d56..933d72d12 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-31.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-31.js @@ -9,26 +9,24 @@ description: > exception on an Array-like object ---*/ -var accessed = false; -var obj = { - length: 3 -}; + var accessed = false; + var obj = { length: 3 }; -Object.defineProperty(obj, "2", { - get: function() { - throw new TypeError(); - }, - configurable: true -}); + Object.defineProperty(obj, "2", { + get: function () { + throw new TypeError(); + }, + configurable: true + }); -Object.defineProperty(obj, "1", { - get: function() { - accessed = true; - return true; - }, - configurable: true -}); + Object.defineProperty(obj, "1", { + get: function () { + accessed = true; + return true; + }, + configurable: true + }); assert.throws(TypeError, function() { - Array.prototype.lastIndexOf.call(obj, true); + Array.prototype.lastIndexOf.call(obj, true); }); assert.sameValue(accessed, false, 'accessed'); |