summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-19.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-19.js')
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-19.js24
1 files changed, 13 insertions, 11 deletions
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-19.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-19.js
index 3c9baf0af..d5ca0b3ee 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-19.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-19.js
@@ -10,18 +10,20 @@ description: >
inherited accessor property on an Array-like object
---*/
- var obj = { length: 1 };
+var obj = {
+ length: 1
+};
- Object.defineProperty(Object.prototype, "0", {
- get: function () {
- return 20;
- },
- configurable: true
- });
- Object.defineProperty(obj, "0", {
- set: function () { },
- configurable: true
- });
+Object.defineProperty(Object.prototype, "0", {
+ get: function() {
+ return 20;
+ },
+ configurable: true
+});
+Object.defineProperty(obj, "0", {
+ set: function() {},
+ configurable: true
+});
assert(obj.hasOwnProperty(0), 'obj.hasOwnProperty(0) !== true');
assert.sameValue(Array.prototype.lastIndexOf.call(obj, undefined), 0, 'Array.prototype.lastIndexOf.call(obj, undefined)');