summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-8.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-8.js')
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-8.js24
1 files changed, 11 insertions, 13 deletions
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-8.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-8.js
index ef7ea0a51..61f659a69 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-8.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-8.js
@@ -9,21 +9,19 @@ description: >
that overrides an inherited data property on an Array-like object
---*/
-var proto = {
- length: 0
-};
+ var proto = { length: 0 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () {};
+ Con.prototype = proto;
-var child = new Con();
-child[1] = eval;
+ var child = new Con();
+ child[1] = eval;
-Object.defineProperty(child, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(child, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.lastIndexOf.call(child, eval), 1, 'Array.prototype.lastIndexOf.call(child, eval)');