summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-8.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/indexOf/15.4.4.14-2-8.js')
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-2-8.js24
1 files changed, 11 insertions, 13 deletions
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-8.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-8.js
index 8ad55630e..92bf58f7a 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-8.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-8.js
@@ -9,21 +9,19 @@ description: >
overrides an inherited data property
---*/
-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] = true;
+ var child = new Con();
+ child[1] = true;
-Object.defineProperty(child, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(child, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.indexOf.call(child, true), 1, 'Array.prototype.indexOf.call(child, true)');