summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/indexOf
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/indexOf')
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-1-1.js2
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-1-10.js4
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-1-11.js6
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-1-12.js6
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-1-13.js6
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-1-14.js6
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-1-15.js8
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-1-2.js2
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-1-3.js6
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-1-4.js6
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-1-5.js6
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-1-6.js6
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-1-8.js2
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-1-9.js8
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-10-1.js14
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-10-2.js15
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-2-1.js10
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-2-10.js26
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-2-11.js12
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-2-12.js24
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-2-13.js18
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-2-14.js5
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-2-17.js10
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-2-18.js4
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-2-19.js10
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-2-2.js4
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-2-3.js14
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-2-4.js8
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-2-5.js30
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-2-6.js16
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-2-7.js32
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-2-8.js24
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-2-9.js34
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-1.js6
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-10.js5
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-11.js6
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-12.js6
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-13.js6
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-14.js18
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-15.js6
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-16.js6
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-17.js6
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-18.js6
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-19.js28
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-2.js6
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-20.js20
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-21.js30
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-22.js30
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-23.js38
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-24.js6
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-25.js6
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-28.js14
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-29.js12
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-3.js5
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-4.js5
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-5.js5
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-6.js6
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-7.js6
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-8.js5
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-9.js5
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-4-1.js2
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-4-10.js8
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-4-11.js8
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-4-2.js4
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-4-3.js4
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-4-4.js4
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-4-5.js4
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-4-6.js8
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-4-7.js18
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-4-8.js30
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-4-9.js8
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-5-1.js6
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-5-10.js2
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-5-11.js2
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-5-12.js4
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-5-16.js4
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-5-18.js2
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-5-19.js2
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-5-2.js8
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-5-20.js2
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-5-21.js20
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-5-22.js10
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-5-23.js24
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-5-24.js26
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-5-25.js30
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-5-26.js40
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-5-27.js48
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-5-28.js16
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-5-29.js30
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-5-3.js6
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-5-30.js38
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-5-31.js2
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-5-32.js2
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-5-4.js4
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-5-5.js4
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-5-6.js4
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-6-1.js8
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-8-1.js10
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-1.js14
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-10.js8
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-11.js16
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-2.js14
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-3.js10
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-4.js12
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-5.js20
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-6.js10
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-7.js4
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-8.js4
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-9.js20
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-1.js16
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-10.js26
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-11.js30
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-12.js28
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-13.js21
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-14.js18
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-15.js23
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-16.js18
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-17.js16
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-18.js28
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-19.js28
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-2.js18
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-3.js18
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-4.js18
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-5.js17
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-6.js18
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-7.js28
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-8.js26
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-9.js28
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-1.js7
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-10.js40
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-11.js16
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-12.js18
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-13.js26
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-14.js28
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-15.js36
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-16.js48
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-17.js10
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-18.js12
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-19.js22
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-20.js30
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-21.js8
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-22.js12
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-25.js8
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-26.js10
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-27.js10
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-28.js38
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-29.js40
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-3.js2
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-30.js32
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-31.js34
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-4.js8
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-5.js12
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-6.js18
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-7.js6
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-8.js18
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-9.js38
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-ii-1.js4
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-ii-11.js6
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-iii-2.js36
159 files changed, 1039 insertions, 1283 deletions
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-1.js
index ea9ca6068..1eb9ef72e 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-1.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-1.js
@@ -9,5 +9,5 @@ description: Array.prototype.indexOf applied to undefined throws a TypeError
assert.throws(TypeError, function() {
- Array.prototype.indexOf.call(undefined);
+ Array.prototype.indexOf.call(undefined);
});
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-10.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-10.js
index 4622e10a0..1a5520218 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-10.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-10.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.14-1-10
description: Array.prototype.indexOf applied to the Math object
---*/
-Math[1] = true;
-Math.length = 2;
+ Math[1] = true;
+ Math.length = 2;
assert.sameValue(Array.prototype.indexOf.call(Math, true), 1, 'Array.prototype.indexOf.call(Math, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-11.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-11.js
index 51d4a331e..bcb3b21ea 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-11.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-11.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.14-1-11
description: Array.prototype.indexOf applied to Date object
---*/
-var obj = new Date();
-obj.length = 2;
-obj[1] = true;
+ var obj = new Date();
+ obj.length = 2;
+ obj[1] = true;
assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-12.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-12.js
index 4c23949e9..c416b6e1b 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-12.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-12.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.14-1-12
description: Array.prototype.indexOf applied to RegExp object
---*/
-var obj = new RegExp();
-obj.length = 2;
-obj[1] = true;
+ var obj = new RegExp();
+ obj.length = 2;
+ obj[1] = true;
assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-13.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-13.js
index b339869a0..c1ca78731 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-13.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-13.js
@@ -7,9 +7,9 @@ es5id: 15.4.4.14-1-13
description: Array.prototype.indexOf applied to the JSON object
---*/
-var targetObj = {};
+ var targetObj = {};
-JSON[3] = targetObj;
-JSON.length = 5;
+ JSON[3] = targetObj;
+ JSON.length = 5;
assert.sameValue(Array.prototype.indexOf.call(JSON, targetObj), 3, 'Array.prototype.indexOf.call(JSON, targetObj)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-14.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-14.js
index 06c02d8f1..6f116d5ce 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-14.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-14.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.14-1-14
description: Array.prototype.indexOf applied to Error object
---*/
-var obj = new SyntaxError();
-obj[1] = true;
-obj.length = 2;
+ var obj = new SyntaxError();
+ obj[1] = true;
+ obj.length = 2;
assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-15.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-15.js
index 598ba594e..7a6c9b7ca 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-15.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-15.js
@@ -7,9 +7,9 @@ es5id: 15.4.4.14-1-15
description: Array.prototype.indexOf applied to Arguments object
---*/
-function fun() {
- return arguments;
-}
-var obj = fun(1, true, 3);
+ function fun() {
+ return arguments;
+ }
+ var obj = fun(1, true, 3);
assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-2.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-2.js
index 5e348a54e..5584d5f68 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-2.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-2.js
@@ -9,5 +9,5 @@ description: Array.prototype.indexOf applied to null throws a TypeError
assert.throws(TypeError, function() {
- Array.prototype.indexOf.call(null);
+ Array.prototype.indexOf.call(null);
});
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-3.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-3.js
index 3bfe5e7a6..510a693ed 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-3.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-3.js
@@ -7,9 +7,9 @@ es5id: 15.4.4.14-1-3
description: Array.prototype.indexOf applied to boolean primitive
---*/
-var targetObj = {};
+ var targetObj = {};
-Boolean.prototype[1] = targetObj;
-Boolean.prototype.length = 2;
+ Boolean.prototype[1] = targetObj;
+ Boolean.prototype.length = 2;
assert.sameValue(Array.prototype.indexOf.call(true, targetObj), 1, 'Array.prototype.indexOf.call(true, targetObj)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-4.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-4.js
index 5f0dd9ed5..844e34af4 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-4.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-4.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.14-1-4
description: Array.prototype.indexOf applied to Boolean Object
---*/
-var obj = new Boolean(false);
-obj.length = 2;
-obj[1] = true;
+ var obj = new Boolean(false);
+ obj.length = 2;
+ obj[1] = true;
assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-5.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-5.js
index 4fa661c8b..ccca65776 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-5.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-5.js
@@ -7,9 +7,9 @@ es5id: 15.4.4.14-1-5
description: Array.prototype.indexOf applied to number primitive
---*/
-var targetObj = {};
+ var targetObj = {};
-Number.prototype[1] = targetObj;
-Number.prototype.length = 2;
+ Number.prototype[1] = targetObj;
+ Number.prototype.length = 2;
assert.sameValue(Array.prototype.indexOf.call(5, targetObj), 1, 'Array.prototype.indexOf.call(5, targetObj)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-6.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-6.js
index 928377959..c6416ebe4 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-6.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-6.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.14-1-6
description: Array.prototype.indexOf applied to Number object
---*/
-var obj = new Number(-3);
-obj.length = 2;
-obj[1] = true;
+ var obj = new Number(-3);
+ obj.length = 2;
+ obj[1] = true;
assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-8.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-8.js
index eaa29361e..46575fb68 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-8.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-8.js
@@ -7,6 +7,6 @@ es5id: 15.4.4.14-1-8
description: Array.prototype.indexOf applied to String object
---*/
-var obj = new String("null");
+ var obj = new String("null");
assert.sameValue(Array.prototype.indexOf.call(obj, 'l'), 2, 'Array.prototype.indexOf.call(obj, "l")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-9.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-9.js
index 065d31bc7..76d8e87c0 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-9.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-9.js
@@ -7,9 +7,9 @@ es5id: 15.4.4.14-1-9
description: Array.prototype.indexOf applied to Function object
---*/
-var obj = function(a, b) {
- return a + b;
-};
-obj[1] = true;
+ var obj = function (a, b) {
+ return a + b;
+ };
+ obj[1] = true;
assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-10-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-10-1.js
index 8a77b86f5..c0d6c537a 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-10-1.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-10-1.js
@@ -9,13 +9,13 @@ description: >
array
---*/
-var a = new Array();
-a[100] = 1;
-a[99999] = "";
-a[10] = new Object();
-a[5555] = 5.5;
-a[123456] = "str";
-a[5] = 1E+309;
+ var a = new Array();
+ a[100] = 1;
+ a[99999] = "";
+ a[10] = new Object();
+ a[5555] = 5.5;
+ a[123456] = "str";
+ a[5] = 1E+309;
assert.sameValue(a.indexOf(1), 100, 'a.indexOf(1)');
assert.sameValue(a.indexOf(""), 99999, 'a.indexOf("")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-10-2.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-10-2.js
index fbb926888..124043c97 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-10-2.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-10-2.js
@@ -9,19 +9,12 @@ description: >
access any other properties
---*/
-var accessed = false;
-var f = {
- length: 0
-};
-Object.defineProperty(f, "0", {
- get: function() {
- accessed = true;
- return 1;
- }
-});
+ var accessed = false;
+ var f = {length: 0};
+ Object.defineProperty(f,"0",{get: function () {accessed = true; return 1;}});
-var i = Array.prototype.indexOf.call(f, 1);
+ var i = Array.prototype.indexOf.call(f,1);
assert.sameValue(i, -1, 'i');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-1.js
index e14c28ba3..61dd7f294 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-1.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-1.js
@@ -9,14 +9,8 @@ description: >
Array-like object
---*/
-var objOne = {
- 1: true,
- length: 2
-};
-var objTwo = {
- 2: true,
- length: 2
-};
+ var objOne = { 1: true, length: 2 };
+ var objTwo = { 2: true, length: 2 };
assert.sameValue(Array.prototype.indexOf.call(objOne, true), 1, 'Array.prototype.indexOf.call(objOne, true)');
assert.sameValue(Array.prototype.indexOf.call(objTwo, true), -1, 'Array.prototype.indexOf.call(objTwo, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-10.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-10.js
index bde4a7b79..f4c6f0b83 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-10.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-10.js
@@ -7,21 +7,21 @@ es5id: 15.4.4.14-2-10
description: Array.prototype.indexOf - 'length' is inherited accessor property
---*/
-var proto = {};
-Object.defineProperty(proto, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ var proto = {};
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () {};
+ Con.prototype = proto;
-var childOne = new Con();
-childOne[1] = true;
-var childTwo = new Con();
-childTwo[2] = true;
+ var childOne = new Con();
+ childOne[1] = true;
+ var childTwo = new Con();
+ childTwo[2] = true;
assert.sameValue(Array.prototype.indexOf.call(childOne, true), 1, 'Array.prototype.indexOf.call(childOne, true)');
assert.sameValue(Array.prototype.indexOf.call(childTwo, true), -1, 'Array.prototype.indexOf.call(childTwo, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-11.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-11.js
index d5d473e99..bb89914e0 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-11.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-11.js
@@ -9,12 +9,10 @@ description: >
without a get function
---*/
-var obj = {
- 1: true
-};
-Object.defineProperty(obj, "length", {
- set: function() {},
- configurable: true
-});
+ var obj = { 1: true };
+ Object.defineProperty(obj, "length", {
+ set: function () { },
+ configurable: true
+ });
assert.sameValue(Array.prototype.indexOf.call(obj, true), -1, 'Array.prototype.indexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-12.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-12.js
index 205d52fbe..ff9ac06df 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-12.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-12.js
@@ -10,19 +10,17 @@ description: >
property
---*/
-Object.defineProperty(Object.prototype, "length", {
- get: function() {
- return 20;
- },
- configurable: true
-});
+ Object.defineProperty(Object.prototype, "length", {
+ get: function () {
+ return 20;
+ },
+ configurable: true
+ });
-var obj = {
- 1: 1
-};
-Object.defineProperty(obj, "length", {
- set: function() {},
- configurable: true
-});
+ var obj = { 1: 1 };
+ Object.defineProperty(obj, "length", {
+ set: function () { },
+ configurable: true
+ });
assert.sameValue(Array.prototype.indexOf.call(obj, 1), -1, 'Array.prototype.indexOf.call(obj, 1)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-13.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-13.js
index 833c45d70..6aa17ff1e 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-13.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-13.js
@@ -9,16 +9,16 @@ description: >
without a get function
---*/
-var proto = {};
-Object.defineProperty(proto, "length", {
- set: function() {},
- configurable: true
-});
+ var proto = {};
+ Object.defineProperty(proto, "length", {
+ set: function () { },
+ configurable: true
+ });
-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;
assert.sameValue(Array.prototype.indexOf.call(child, true), -1, 'Array.prototype.indexOf.call(child, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-14.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-14.js
index 8807657e8..6ffd345db 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-14.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-14.js
@@ -7,9 +7,6 @@ es5id: 15.4.4.14-2-14
description: Array.prototype.indexOf - 'length' is undefined property
---*/
-var obj = {
- 0: true,
- 1: true
-};
+ var obj = { 0: true, 1: true };
assert.sameValue(Array.prototype.indexOf.call(obj, true), -1, 'Array.prototype.indexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-17.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-17.js
index cce214933..2df759495 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-17.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-17.js
@@ -9,10 +9,10 @@ description: >
implements its own property get method
---*/
-var func = function(a, b) {
- arguments[2] = false;
- return Array.prototype.indexOf.call(arguments, true) === 1 &&
- Array.prototype.indexOf.call(arguments, false) === -1;
-};
+ var func = function (a, b) {
+ arguments[2] = false;
+ return Array.prototype.indexOf.call(arguments, true) === 1 &&
+ Array.prototype.indexOf.call(arguments, false) === -1;
+ };
assert(func(0, true), 'func(0, true) !== true');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-18.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-18.js
index e739dd81a..e48cb33de 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-18.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-18.js
@@ -9,9 +9,9 @@ description: >
its own property get method
---*/
-var str = new String("012");
+ var str = new String("012");
-String.prototype[3] = "3";
+ String.prototype[3] = "3";
assert.sameValue(Array.prototype.indexOf.call(str, "2"), 2, 'Array.prototype.indexOf.call(str, "2")');
assert.sameValue(Array.prototype.indexOf.call(str, "3"), -1, 'Array.prototype.indexOf.call(str, "3")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-19.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-19.js
index b5735739f..09bb09dd3 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-19.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-19.js
@@ -9,11 +9,11 @@ description: >
implements its own property get method
---*/
-var obj = function(a, b) {
- return a + b;
-};
-obj[1] = "b";
-obj[2] = "c";
+ var obj = function (a, b) {
+ return a + b;
+ };
+ obj[1] = "b";
+ obj[2] = "c";
assert.sameValue(Array.prototype.indexOf.call(obj, obj[1]), 1, 'Array.prototype.indexOf.call(obj, obj[1])');
assert.sameValue(Array.prototype.indexOf.call(obj, obj[2]), -1, 'Array.prototype.indexOf.call(obj, obj[2])');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-2.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-2.js
index 9fba71821..d1fb4b7bb 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-2.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-2.js
@@ -7,9 +7,9 @@ es5id: 15.4.4.14-2-2
description: Array.prototype.indexOf - 'length' is own data property on an Array
---*/
-var targetObj = {};
+ var targetObj = {};
-Array.prototype[2] = targetObj;
+ Array.prototype[2] = targetObj;
assert.sameValue([0, targetObj].indexOf(targetObj), 1, '[0, targetObj].indexOf(targetObj)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-3.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-3.js
index db7ecfe83..c0c72be3b 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-3.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-3.js
@@ -9,15 +9,13 @@ description: >
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.length = 2;
-child[1] = true;
+ var child = new Con();
+ child.length = 2;
+ child[1] = true;
assert.sameValue(Array.prototype.indexOf.call(child, true), 1, 'Array.prototype.indexOf.call(child, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-4.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-4.js
index dfc01cd8d..5a4f6f238 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-4.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-4.js
@@ -9,10 +9,10 @@ description: >
overrides an inherited data property on an Array
---*/
-var targetObj = {};
-var arrProtoLen;
+ var targetObj = {};
+ var arrProtoLen;
-arrProtoLen = Array.prototype.length;
-Array.prototype.length = 0;
+ arrProtoLen = Array.prototype.length;
+ Array.prototype.length = 0;
assert.sameValue([0, targetObj].indexOf(targetObj), 1, '[0, targetObj].indexOf(targetObj)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-5.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-5.js
index 0f3909236..8c5523964 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-5.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-5.js
@@ -9,23 +9,23 @@ description: >
overrides an inherited accessor property on an Array-like object
---*/
-var proto = {};
-Object.defineProperty(proto, "length", {
- get: function() {
- return 0;
- },
- configurable: true
-});
+ var proto = {};
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 0;
+ },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () {};
+ Con.prototype = proto;
-var child = new Con();
+ var child = new Con();
-Object.defineProperty(child, "length", {
- value: 2,
- configurable: true
-});
-child[1] = true;
+ Object.defineProperty(child, "length", {
+ value: 2,
+ configurable: true
+ });
+ child[1] = true;
assert.sameValue(Array.prototype.indexOf.call(child, true), 1, 'Array.prototype.indexOf.call(child, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-6.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-6.js
index 79269969a..39788558a 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-6.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-6.js
@@ -7,17 +7,15 @@ es5id: 15.4.4.14-2-6
description: Array.prototype.indexOf - 'length' is an inherited data property
---*/
-var proto = {
- length: 2
-};
+ var proto = { length: 2 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () {};
+ Con.prototype = proto;
-var childOne = new Con();
-childOne[1] = true;
-var childTwo = new Con();
-childTwo[2] = true;
+ var childOne = new Con();
+ childOne[1] = true;
+ var childTwo = new Con();
+ childTwo[2] = true;
assert.sameValue(Array.prototype.indexOf.call(childOne, true), 1, 'Array.prototype.indexOf.call(childOne, true)');
assert.sameValue(Array.prototype.indexOf.call(childTwo, true), -1, 'Array.prototype.indexOf.call(childTwo, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-7.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-7.js
index 6a0ec2587..975a8673a 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-7.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-7.js
@@ -7,24 +7,20 @@ es5id: 15.4.4.14-2-7
description: Array.prototype.indexOf - 'length' is own accessor property
---*/
-var objOne = {
- 1: true
-};
-var objTwo = {
- 2: true
-};
-Object.defineProperty(objOne, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
-Object.defineProperty(objTwo, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ var objOne = { 1: true };
+ var objTwo = { 2: true };
+ Object.defineProperty(objOne, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
+ Object.defineProperty(objTwo, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.indexOf.call(objOne, true), 1, 'Array.prototype.indexOf.call(objOne, true)');
assert.sameValue(Array.prototype.indexOf.call(objTwo, true), -1, 'Array.prototype.indexOf.call(objTwo, true)');
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)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-9.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-9.js
index 2bf8c82ef..5ec60e058 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-9.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-9.js
@@ -9,25 +9,25 @@ description: >
overrides an inherited accessor property
---*/
-var proto = {};
-Object.defineProperty(proto, "length", {
- get: function() {
- return 0;
- },
- configurable: true
-});
+ var proto = {};
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 0;
+ },
+ configurable: true
+ });
-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)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-1.js
index 0787c3a9c..528bb1f48 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-1.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-1.js
@@ -7,10 +7,6 @@ es5id: 15.4.4.14-3-1
description: Array.prototype.indexOf - value of 'length' is undefined
---*/
-var obj = {
- 0: 1,
- 1: 1,
- length: undefined
-};
+ var obj = { 0: 1, 1: 1, length: undefined };
assert.sameValue(Array.prototype.indexOf.call(obj, 1), -1, 'Array.prototype.indexOf.call(obj, 1)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-10.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-10.js
index 503c2206d..2d422228c 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-10.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-10.js
@@ -9,9 +9,6 @@ description: >
(value is NaN)
---*/
-var obj = {
- 0: 0,
- length: NaN
-};
+ var obj = { 0: 0, length: NaN };
assert.sameValue(Array.prototype.indexOf.call(obj, 0), -1, 'Array.prototype.indexOf.call(obj, 0)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-11.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-11.js
index 9914d8d78..dbccc238b 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-11.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-11.js
@@ -9,11 +9,7 @@ description: >
positive number
---*/
-var obj = {
- 1: 1,
- 2: 2,
- length: "2"
-};
+ var obj = { 1: 1, 2: 2, length: "2" };
assert.sameValue(Array.prototype.indexOf.call(obj, 1), 1, 'Array.prototype.indexOf.call(obj, 1)');
assert.sameValue(Array.prototype.indexOf.call(obj, 2), -1, 'Array.prototype.indexOf.call(obj, 2)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-12.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-12.js
index edc04e60c..c147d9355 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-12.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-12.js
@@ -9,11 +9,7 @@ description: >
negative number
---*/
-var obj = {
- 1: "true",
- 2: "2",
- length: "-4294967294"
-};
+ var obj = { 1: "true", 2: "2", length: "-4294967294" };
assert.sameValue(Array.prototype.indexOf.call(obj, "true"), -1, 'Array.prototype.indexOf.call(obj, "true")');
assert.sameValue(Array.prototype.indexOf.call(obj, "2"), -1, 'Array.prototype.indexOf.call(obj, "2")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-13.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-13.js
index 0b2ea6bb6..d2ff4af50 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-13.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-13.js
@@ -9,11 +9,7 @@ description: >
decimal number
---*/
-var obj = {
- 199: true,
- 200: "200.59",
- length: "200.59"
-};
+ var obj = { 199: true, 200: "200.59", length: "200.59" };
assert.sameValue(Array.prototype.indexOf.call(obj, true), 199, 'Array.prototype.indexOf.call(obj, true)');
assert.sameValue(Array.prototype.indexOf.call(obj, "200.59"), -1, 'Array.prototype.indexOf.call(obj, "200.59")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-14.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-14.js
index ec4c578d2..f37712cf3 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-14.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-14.js
@@ -9,21 +9,9 @@ description: >
+/-Infinity
---*/
-var objOne = {
- 0: true,
- 1: true,
- length: "Infinity"
-};
-var objTwo = {
- 0: true,
- 1: true,
- length: "+Infinity"
-};
-var objThree = {
- 0: true,
- 1: true,
- length: "-Infinity"
-};
+ var objOne = { 0: true, 1: true, length: "Infinity" };
+ var objTwo = { 0: true, 1: true, length: "+Infinity" };
+ var objThree = { 0: true, 1: true, length: "-Infinity" };
assert.sameValue(Array.prototype.indexOf.call(objOne, true), 0, 'Array.prototype.indexOf.call(objOne, true)');
assert.sameValue(Array.prototype.indexOf.call(objTwo, true), 0, 'Array.prototype.indexOf.call(objTwo, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-15.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-15.js
index 2bf0dd8b2..e35a97c2c 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-15.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-15.js
@@ -9,11 +9,7 @@ description: >
exponential number
---*/
-var obj = {
- 1: true,
- 2: "2E0",
- length: "2E0"
-};
+ var obj = { 1: true, 2: "2E0", length: "2E0" };
assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)');
assert.sameValue(Array.prototype.indexOf.call(obj, "2E0"), -1, 'Array.prototype.indexOf.call(obj, "2E0")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-16.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-16.js
index c3cd2c458..adc6ff83a 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-16.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-16.js
@@ -9,11 +9,7 @@ description: >
number
---*/
-var obj = {
- 10: true,
- 11: "0x00B",
- length: "0x00B"
-};
+ var obj = { 10: true, 11: "0x00B", length: "0x00B" };
assert.sameValue(Array.prototype.indexOf.call(obj, true), 10, 'Array.prototype.indexOf.call(obj, true)');
assert.sameValue(Array.prototype.indexOf.call(obj, "0x00B"), -1, 'Array.prototype.indexOf.call(obj, "0x00B")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-17.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-17.js
index 66bb812c3..3f5d9a173 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-17.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-17.js
@@ -9,11 +9,7 @@ description: >
with leading zeros
---*/
-var obj = {
- 1: true,
- 2: "0002.0",
- length: "0002.0"
-};
+ var obj = { 1: true, 2: "0002.0", length: "0002.0" };
assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)');
assert.sameValue(Array.prototype.indexOf.call(obj, "0002.0"), -1, 'Array.prototype.indexOf.call(obj, "0002.0")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-18.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-18.js
index 382df40af..71c052c5b 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-18.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-18.js
@@ -9,10 +9,6 @@ description: >
convert to a number
---*/
-var obj = {
- 0: true,
- 100: true,
- length: "one"
-};
+ var obj = { 0: true, 100: true, length: "one" };
assert.sameValue(Array.prototype.indexOf.call(obj, true), -1, 'Array.prototype.indexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-19.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-19.js
index b770f0577..17a3c545a 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-19.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-19.js
@@ -9,22 +9,22 @@ description: >
an own toString method.
---*/
-// objects inherit the default valueOf() method from Object
-// that simply returns itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
+ // objects inherit the default valueOf() method from Object
+ // that simply returns itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
-var obj = {
- 1: true,
- 2: 2,
+ var obj = {
+ 1: true,
+ 2: 2,
- length: {
- toString: function() {
- return '2';
- }
- }
-};
+ length: {
+ toString: function () {
+ return '2';
+ }
+ }
+ };
assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)');
assert.sameValue(Array.prototype.indexOf.call(obj, 2), -1, 'Array.prototype.indexOf.call(obj, 2)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-2.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-2.js
index a645ce3b0..8cfa825b8 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-2.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-2.js
@@ -9,11 +9,7 @@ description: >
(value is true)
---*/
-var obj = {
- 0: 0,
- 1: 1,
- length: true
-};
+ var obj = { 0: 0, 1: 1, length: true };
assert.sameValue(Array.prototype.indexOf.call(obj, 0), 0, 'Array.prototype.indexOf.call(obj, 0)');
assert.sameValue(Array.prototype.indexOf.call(obj, 1), -1, 'Array.prototype.indexOf.call(obj, 1)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-20.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-20.js
index 6c9c56ff2..3479154f0 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-20.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-20.js
@@ -9,16 +9,16 @@ description: >
an own valueOf method.
---*/
-//valueOf method will be invoked first, since hint is Number
-var obj = {
- 1: true,
- 2: 2,
- length: {
- valueOf: function() {
- return 2;
- }
- }
-};
+ //valueOf method will be invoked first, since hint is Number
+ var obj = {
+ 1: true,
+ 2: 2,
+ length: {
+ valueOf: function () {
+ return 2;
+ }
+ }
+ };
assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)');
assert.sameValue(Array.prototype.indexOf.call(obj, 2), -1, 'Array.prototype.indexOf.call(obj, 2)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-21.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-21.js
index f1de649c8..a9ad676ad 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-21.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-21.js
@@ -10,23 +10,23 @@ description: >
returns a string
---*/
-var toStringAccessed = false;
-var valueOfAccessed = false;
+ var toStringAccessed = false;
+ var valueOfAccessed = false;
-var obj = {
- 1: true,
- length: {
- toString: function() {
- toStringAccessed = true;
- return '2';
- },
+ var obj = {
+ 1: true,
+ length: {
+ toString: function () {
+ toStringAccessed = true;
+ return '2';
+ },
- valueOf: function() {
- valueOfAccessed = true;
- return {};
- }
- }
-};
+ valueOf: function () {
+ valueOfAccessed = true;
+ return {};
+ }
+ }
+ };
assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)');
assert(toStringAccessed, 'toStringAccessed !== true');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-22.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-22.js
index ad4324128..5cb92837c 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-22.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-22.js
@@ -10,25 +10,25 @@ description: >
primitive values
---*/
-var toStringAccessed = false;
-var valueOfAccessed = false;
+ var toStringAccessed = false;
+ var valueOfAccessed = false;
-var obj = {
- length: {
- toString: function() {
- toStringAccessed = true;
- return {};
- },
+ var obj = {
+ length: {
+ toString: function () {
+ toStringAccessed = true;
+ return {};
+ },
- valueOf: function() {
- valueOfAccessed = true;
- return {};
- }
- }
-};
+ valueOf: function () {
+ valueOfAccessed = true;
+ return {};
+ }
+ }
+ };
assert.throws(TypeError, function() {
- Array.prototype.indexOf.call(obj);
+ Array.prototype.indexOf.call(obj);
});
assert(toStringAccessed, 'toStringAccessed');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-23.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-23.js
index a87a044d5..5b30d00cf 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-23.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-23.js
@@ -10,29 +10,29 @@ description: >
methods
---*/
-var toStringAccessed = false;
-var valueOfAccessed = false;
+ var toStringAccessed = false;
+ var valueOfAccessed = false;
-var proto = {
- valueOf: function() {
- valueOfAccessed = true;
- return 2;
- }
-};
+ var proto = {
+ valueOf: function () {
+ valueOfAccessed = true;
+ return 2;
+ }
+ };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () {};
+ Con.prototype = proto;
-var child = new Con();
-child.toString = function() {
- toStringAccessed = true;
- return 2;
-};
+ var child = new Con();
+ child.toString = function () {
+ toStringAccessed = true;
+ return 2;
+ };
-var obj = {
- 1: true,
- length: child
-};
+ var obj = {
+ 1: true,
+ length: child
+ };
assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)');
assert(valueOfAccessed, 'valueOfAccessed !== true');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-24.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-24.js
index 109eca9ec..539f8d669 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-24.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-24.js
@@ -9,11 +9,7 @@ description: >
non-integer, ensure truncation occurs in the proper direction
---*/
-var obj = {
- 122: true,
- 123: false,
- length: 123.321
-}; //length will be 123 finally
+ var obj = { 122: true, 123: false, length: 123.321 }; //length will be 123 finally
assert.sameValue(Array.prototype.indexOf.call(obj, true), 122, 'Array.prototype.indexOf.call(obj, true)');
assert.sameValue(Array.prototype.indexOf.call(obj, false), -1, 'Array.prototype.indexOf.call(obj, false)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-25.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-25.js
index d1c35a485..4e275b17f 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-25.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-25.js
@@ -9,11 +9,7 @@ description: >
non-integer
---*/
-var obj = {
- 1: true,
- 2: false,
- length: -4294967294.5
-}; //length will be 0 finally
+ var obj = { 1: true, 2: false, length: -4294967294.5 }; //length will be 0 finally
assert.sameValue(Array.prototype.indexOf.call(obj, true), -1, 'Array.prototype.indexOf.call(obj, true)');
assert.sameValue(Array.prototype.indexOf.call(obj, false), -1, 'Array.prototype.indexOf.call(obj, false)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-28.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-28.js
index b6f651f69..62702eed7 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-28.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-28.js
@@ -9,12 +9,12 @@ description: >
(2^32)
---*/
-var targetObj = {};
-var obj = {
- 0: targetObj,
- 4294967294: targetObj,
- 4294967295: targetObj,
- length: 4294967296
-};
+ var targetObj = {};
+ var obj = {
+ 0: targetObj,
+ 4294967294: targetObj,
+ 4294967295: targetObj,
+ length: 4294967296
+ };
assert.sameValue(Array.prototype.indexOf.call(obj, targetObj), 0, 'Array.prototype.indexOf.call(obj, targetObj)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-29.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-29.js
index 41298b8a3..23bb38ae7 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-29.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-29.js
@@ -9,12 +9,12 @@ description: >
(2^32 + 1)
---*/
-var targetObj = {};
-var obj = {
- 0: targetObj,
- 1: 4294967297,
- length: 4294967297
-};
+ var targetObj = {};
+ var obj = {
+ 0: targetObj,
+ 1: 4294967297,
+ length: 4294967297
+ };
assert.sameValue(Array.prototype.indexOf.call(obj, targetObj), 0, 'Array.prototype.indexOf.call(obj, targetObj)');
assert.sameValue(Array.prototype.indexOf.call(obj, 4294967297), 1, 'Array.prototype.indexOf.call(obj, 4294967297)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-3.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-3.js
index 2db8c77fc..83c239e17 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-3.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-3.js
@@ -9,9 +9,6 @@ description: >
0)
---*/
-var obj = {
- 0: true,
- length: 0
-};
+ var obj = { 0: true, length: 0 };
assert.sameValue(Array.prototype.indexOf.call(obj, true), -1, 'Array.prototype.indexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-4.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-4.js
index c2f4f22c8..e2dc4190f 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-4.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-4.js
@@ -9,9 +9,6 @@ description: >
+0)
---*/
-var obj = {
- 0: true,
- length: +0
-};
+ var obj = { 0: true, length: +0 };
assert.sameValue(Array.prototype.indexOf.call(obj, true), -1, 'Array.prototype.indexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-5.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-5.js
index 4ca356c5f..6fccac875 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-5.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-5.js
@@ -9,9 +9,6 @@ description: >
-0)
---*/
-var obj = {
- 0: true,
- length: -0
-};
+ var obj = { 0: true, length: -0 };
assert.sameValue(Array.prototype.indexOf.call(obj, true), -1, 'Array.prototype.indexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-6.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-6.js
index 841c6b02e..50cc7c262 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-6.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-6.js
@@ -9,11 +9,7 @@ description: >
positive)
---*/
-var obj = {
- 3: true,
- 4: false,
- length: 4
-};
+ var obj = { 3: true, 4: false, length: 4 };
assert.sameValue(Array.prototype.indexOf.call(obj, true), 3, 'Array.prototype.indexOf.call(obj, true)');
assert.sameValue(Array.prototype.indexOf.call(obj, false), -1, 'Array.prototype.indexOf.call(obj, false)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-7.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-7.js
index bbc47c981..1ff3602c0 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-7.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-7.js
@@ -9,11 +9,7 @@ description: >
negative)
---*/
-var obj = {
- 4: true,
- 5: false,
- length: 5 - Math.pow(2, 32)
-};
+ var obj = { 4: true, 5: false, length: 5 - Math.pow(2, 32) };
assert.sameValue(Array.prototype.indexOf.call(obj, true), -1, 'Array.prototype.indexOf.call(obj, true)');
assert.sameValue(Array.prototype.indexOf.call(obj, false), -1, 'Array.prototype.indexOf.call(obj, false)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-8.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-8.js
index b7ffedc0c..c7873e9ee 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-8.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-8.js
@@ -9,9 +9,6 @@ description: >
Infinity)
---*/
-var obj = {
- 0: 0,
- length: Infinity
-};
+ var obj = { 0: 0, length: Infinity };
assert.sameValue(Array.prototype.indexOf.call(obj, 0), 0, 'Array.prototype.indexOf.call(obj, 0)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-9.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-9.js
index 00fafbc74..faf4a227c 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-9.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-9.js
@@ -9,9 +9,6 @@ description: >
-Infinity)
---*/
-var obj = {
- 0: 0,
- length: -Infinity
-};
+ var obj = { 0: 0, length: -Infinity };
assert.sameValue(Array.prototype.indexOf.call(obj, 0), -1, 'Array.prototype.indexOf.call(obj, 0)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-1.js
index 7f753d785..5b6a62eb9 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-1.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-1.js
@@ -7,6 +7,6 @@ es5id: 15.4.4.14-4-1
description: Array.prototype.indexOf returns -1 if 'length' is 0 (empty array)
---*/
-var i = [].indexOf(42);
+ var i = [].indexOf(42);
assert.sameValue(i, -1, 'i');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-10.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-10.js
index 47a90a228..6af3e10a8 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-10.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-10.js
@@ -7,11 +7,7 @@ es5id: 15.4.4.14-4-10
description: Array.prototype.indexOf - 'length' is a number of value -6e-1
---*/
-var targetObj = [];
-var obj = {
- 0: targetObj,
- 100: targetObj,
- length: -6e-1
-};
+ var targetObj = [];
+ var obj = { 0: targetObj, 100: targetObj, length: -6e-1 };
assert.sameValue(Array.prototype.indexOf.call(obj, targetObj), -1, 'Array.prototype.indexOf.call(obj, targetObj)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-11.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-11.js
index 94da77848..3410cb85c 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-11.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-11.js
@@ -7,11 +7,7 @@ es5id: 15.4.4.14-4-11
description: Array.prototype.indexOf - 'length' is an empty string
---*/
-var targetObj = [];
-var obj = {
- 0: targetObj,
- 100: targetObj,
- length: ""
-};
+ var targetObj = [];
+ var obj = { 0: targetObj, 100: targetObj, length: "" };
assert.sameValue(Array.prototype.indexOf.call(obj, targetObj), -1, 'Array.prototype.indexOf.call(obj, targetObj)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-2.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-2.js
index e39faf7b1..485bcf04e 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-2.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-2.js
@@ -9,9 +9,7 @@ description: >
overridden to null (type conversion))
---*/
-var i = Array.prototype.indexOf.call({
- length: null
-}, 1);
+ var i = Array.prototype.indexOf.call({length: null}, 1);
assert.sameValue(i, -1, 'i');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-3.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-3.js
index ccca42340..535a46c8e 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-3.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-3.js
@@ -9,9 +9,7 @@ description: >
overridden to false (type conversion))
---*/
-var i = Array.prototype.indexOf.call({
- length: false
-}, 1);
+ var i = Array.prototype.indexOf.call({length: false}, 1);
assert.sameValue(i, -1, 'i');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-4.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-4.js
index d665e97c1..c614ca938 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-4.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-4.js
@@ -9,9 +9,7 @@ description: >
'array' with length 0 )
---*/
-var i = Array.prototype.lastIndexOf.call({
- length: 0
-}, 1);
+ var i = Array.prototype.lastIndexOf.call({length: 0}, 1);
assert.sameValue(i, -1, 'i');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-5.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-5.js
index 7cd825ba8..595122579 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-5.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-5.js
@@ -9,9 +9,7 @@ description: >
overridden to '0' (type conversion))
---*/
-var i = Array.prototype.indexOf.call({
- length: '0'
-}, 1);
+ var i = Array.prototype.indexOf.call({length: '0'}, 1);
assert.sameValue(i, -1, 'i');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-6.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-6.js
index bdb5f01fa..365da0c37 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-6.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-6.js
@@ -9,13 +9,7 @@ description: >
Array, length overridden with obj with valueOf)
---*/
-var i = Array.prototype.indexOf.call({
- length: {
- valueOf: function() {
- return 0;
- }
- }
-}, 1);
+ var i = Array.prototype.indexOf.call({length: { valueOf: function () { return 0;}}}, 1);
assert.sameValue(i, -1, 'i');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-7.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-7.js
index c6c14d773..ed4cf9894 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-7.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-7.js
@@ -9,18 +9,12 @@ description: >
object overridden with obj w/o valueOf (toString))
---*/
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-var i = Array.prototype.indexOf.call({
- length: {
- toString: function() {
- return '0';
- }
- }
-}, 1);
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
+ var i = Array.prototype.indexOf.call({length: { toString: function () { return '0';}}}, 1);
assert.sameValue(i, -1, 'i');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-8.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-8.js
index 2c863ea49..04ad4c7fb 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-8.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-8.js
@@ -9,22 +9,20 @@ description: >
empty array)
---*/
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-//
-// The toString( ) method on Array converts the array elements to strings,
-// then returns the result of concatenating these strings, with commas in
-// between. An array with no elements converts to the empty string, which
-// converts to the number 0. If an array has a single element that is a
-// number n, the array converts to a string representation of n, which is
-// then converted back to n itself. If an array contains more than one element,
-// or if its one element is not a number, the array converts to NaN.
-var i = Array.prototype.indexOf.call({
- length: []
-}, 1);
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
+ //
+ // The toString( ) method on Array converts the array elements to strings,
+ // then returns the result of concatenating these strings, with commas in
+ // between. An array with no elements converts to the empty string, which
+ // converts to the number 0. If an array has a single element that is a
+ // number n, the array converts to a string representation of n, which is
+ // then converted back to n itself. If an array contains more than one element,
+ // or if its one element is not a number, the array converts to NaN.
+ var i = Array.prototype.indexOf.call({length: [ ]}, 1);
assert.sameValue(i, -1, 'i');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-9.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-9.js
index b64c1213a..e90ce2e4c 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-9.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-9.js
@@ -7,11 +7,7 @@ es5id: 15.4.4.14-4-9
description: Array.prototype.indexOf - 'length' is a number of value 0.1
---*/
-var targetObj = [];
-var obj = {
- 0: targetObj,
- 100: targetObj,
- length: 0.1
-};
+ var targetObj = [];
+ var obj = { 0: targetObj, 100: targetObj, length: 0.1 };
assert.sameValue(Array.prototype.indexOf.call(obj, targetObj), -1, 'Array.prototype.indexOf.call(obj, targetObj)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-1.js
index bfb7c07cd..146456dba 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-1.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-1.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.14-5-1
description: Array.prototype.indexOf when fromIndex is string
---*/
-var a = [1, 2, 1, 2, 1, 2];
+ var a = [1,2,1,2,1,2];
-assert.sameValue(a.indexOf(2, "2"), 3, '"2" resolves to 2');
-assert.sameValue(a.indexOf(2, "one"), 1, '"one" resolves to 0');
+assert.sameValue(a.indexOf(2,"2"), 3, '"2" resolves to 2');
+assert.sameValue(a.indexOf(2,"one"), 1, '"one" resolves to 0');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-10.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-10.js
index 4ec2ce2a0..7c006a5d0 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-10.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-10.js
@@ -9,7 +9,7 @@ description: >
is positive number)
---*/
-var targetObj = {};
+ var targetObj = {};
assert.sameValue([0, targetObj, 2].indexOf(targetObj, 2), -1, '[0, targetObj, 2].indexOf(targetObj, 2)');
assert.sameValue([0, 1, targetObj].indexOf(targetObj, 2), 2, '[0, 1, targetObj].indexOf(targetObj, 2)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-11.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-11.js
index 873dcea19..e8dccbd1d 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-11.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-11.js
@@ -9,7 +9,7 @@ description: >
is negative number)
---*/
-var targetObj = {};
+ var targetObj = {};
assert.sameValue([0, targetObj, 2].indexOf(targetObj, -1), -1, '[0, targetObj, 2].indexOf(targetObj, -1)');
assert.sameValue([0, 1, targetObj].indexOf(targetObj, -1), 2, '[0, 1, targetObj].indexOf(targetObj, -1)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-12.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-12.js
index ef4baf22e..dbdc234eb 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-12.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-12.js
@@ -9,7 +9,7 @@ description: >
is Infinity)
---*/
-var arr = [];
-arr[Math.pow(2, 32) - 2] = true; //length is the max value of Uint type
+ var arr = [];
+ arr[Math.pow(2, 32) - 2] = true; //length is the max value of Uint type
assert.sameValue(arr.indexOf(true, Infinity), -1, 'arr.indexOf(true, Infinity)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-16.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-16.js
index 6f9afde36..68e8cbe5f 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-16.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-16.js
@@ -9,7 +9,7 @@ description: >
containing Infinity
---*/
-var arr = [];
-arr[Math.pow(2, 32) - 2] = true; //length is the max value of Uint type
+ var arr = [];
+ arr[Math.pow(2, 32) - 2] = true; //length is the max value of Uint type
assert.sameValue(arr.indexOf(true, "Infinity"), -1, 'arr.indexOf(true, "Infinity")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-18.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-18.js
index 66bfabd2f..7729f74b5 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-18.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-18.js
@@ -9,7 +9,7 @@ description: >
containing an exponential number
---*/
-var targetObj = {};
+ var targetObj = {};
assert.sameValue([0, 1, targetObj, 3, 4].indexOf(targetObj, "3E0"), -1, '[0, 1, targetObj, 3, 4].indexOf(targetObj, "3E0")');
assert.sameValue([0, 1, 2, targetObj, 4].indexOf(targetObj, "3E0"), 3, '[0, 1, 2, targetObj, 4].indexOf(targetObj, "3E0")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-19.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-19.js
index 123b1304f..ef2936fb7 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-19.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-19.js
@@ -9,7 +9,7 @@ description: >
containing a hex number
---*/
-var targetObj = {};
+ var targetObj = {};
assert.sameValue([0, 1, targetObj, 3, 4].indexOf(targetObj, "0x0003"), -1, '[0, 1, targetObj, 3, 4].indexOf(targetObj, "0x0003")');
assert.sameValue([0, 1, 2, targetObj, 4].indexOf(targetObj, "0x0003"), 3, '[0, 1, 2, targetObj, 4].indexOf(targetObj, "0x0003")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-2.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-2.js
index 092e4127f..6fbcc5ced 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-2.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-2.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.14-5-2
description: Array.prototype.indexOf when fromIndex is floating point number
---*/
-var a = new Array(1, 2, 3);
+ var a = new Array(1,2,3);
-assert.sameValue(a.indexOf(3, 0.49), 2, '0.49 resolves to 0');
-assert.sameValue(a.indexOf(1, 0.51), 0, '0.51 resolves to 0');
-assert.sameValue(a.indexOf(1, 1.51), -1, '1.51 resolves to 1');
+assert.sameValue(a.indexOf(3,0.49), 2, '0.49 resolves to 0');
+assert.sameValue(a.indexOf(1,0.51), 0, '0.51 resolves to 0');
+assert.sameValue(a.indexOf(1,1.51), -1, '1.51 resolves to 1');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-20.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-20.js
index 106b630ba..0471343e2 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-20.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-20.js
@@ -9,7 +9,7 @@ description: >
containing a number with leading zeros
---*/
-var targetObj = {};
+ var targetObj = {};
assert.sameValue([0, 1, targetObj, 3, 4].indexOf(targetObj, "0003.10"), -1, '[0, 1, targetObj, 3, 4].indexOf(targetObj, "0003.10")');
assert.sameValue([0, 1, 2, targetObj, 4].indexOf(targetObj, "0003.10"), 3, '[0, 1, 2, targetObj, 4].indexOf(targetObj, "0003.10")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-21.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-21.js
index 887de235a..05fbacd4d 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-21.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-21.js
@@ -9,15 +9,15 @@ description: >
has an own toString method
---*/
-// objects inherit the default valueOf() method from Object
-// that simply returns itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-var fromIndex = {
- toString: function() {
- return '1';
- }
-};
+ // objects inherit the default valueOf() method from Object
+ // that simply returns itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
+ var fromIndex = {
+ toString: function () {
+ return '1';
+ }
+ };
assert.sameValue([0, true].indexOf(true, fromIndex), 1, '[0, true].indexOf(true, fromIndex)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-22.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-22.js
index e1ed13197..21bb6b03a 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-22.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-22.js
@@ -9,11 +9,11 @@ description: >
has an own valueOf method
---*/
-var fromIndex = {
- valueOf: function() {
- return 1;
- }
-};
+ var fromIndex = {
+ valueOf: function () {
+ return 1;
+ }
+ };
assert.sameValue([0, true].indexOf(true, fromIndex), 1, '[0, true].indexOf(true, fromIndex)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-23.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-23.js
index 8bfad2363..64f186fc8 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-23.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-23.js
@@ -10,20 +10,20 @@ description: >
method that returns a string
---*/
-var toStringAccessed = false;
-var valueOfAccessed = false;
+ var toStringAccessed = false;
+ var valueOfAccessed = false;
-var fromIndex = {
- toString: function() {
- toStringAccessed = true;
- return '1';
- },
+ var fromIndex = {
+ toString: function () {
+ toStringAccessed = true;
+ return '1';
+ },
- valueOf: function() {
- valueOfAccessed = true;
- return {};
- }
-};
+ valueOf: function () {
+ valueOfAccessed = true;
+ return {};
+ }
+ };
assert.sameValue([0, true].indexOf(true, fromIndex), 1, '[0, true].indexOf(true, fromIndex)');
assert(toStringAccessed, 'toStringAccessed !== true');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-24.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-24.js
index 881197259..3f83428a2 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-24.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-24.js
@@ -10,22 +10,22 @@ description: >
don�t return primitive values
---*/
-var toStringAccessed = false;
-var valueOfAccessed = false;
-var fromIndex = {
- toString: function() {
- toStringAccessed = true;
- return {};
- },
+ var toStringAccessed = false;
+ var valueOfAccessed = false;
+ var fromIndex = {
+ toString: function () {
+ toStringAccessed = true;
+ return {};
+ },
- valueOf: function() {
- valueOfAccessed = true;
- return {};
- }
-};
+ valueOf: function () {
+ valueOfAccessed = true;
+ return {};
+ }
+ };
assert.throws(TypeError, function() {
- [0, true].indexOf(true, fromIndex);
+ [0, true].indexOf(true, fromIndex);
});
assert(toStringAccessed, 'toStringAccessed');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-25.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-25.js
index f3943fc49..a8139b751 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-25.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-25.js
@@ -10,24 +10,24 @@ description: >
valueOf methods
---*/
-var toStringAccessed = false;
-var valueOfAccessed = false;
+ var toStringAccessed = false;
+ var valueOfAccessed = false;
-var proto = {
- valueOf: function() {
- valueOfAccessed = true;
- return 1;
- }
-};
+ var proto = {
+ valueOf: function () {
+ valueOfAccessed = true;
+ return 1;
+ }
+ };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () {};
+ Con.prototype = proto;
-var child = new Con();
-child.toString = function() {
- toStringAccessed = true;
- return 2;
-};
+ var child = new Con();
+ child.toString = function () {
+ toStringAccessed = true;
+ return 2;
+ };
assert.sameValue([0, true].indexOf(true, child), 1, '[0, true].indexOf(true, child)');
assert(valueOfAccessed, 'valueOfAccessed !== true');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-26.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-26.js
index 43307ad73..6c66928ce 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-26.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-26.js
@@ -9,30 +9,30 @@ description: >
visible when an exception occurs
---*/
-var stepTwoOccurs = false;
-var stepFiveOccurs = false;
+ var stepTwoOccurs = false;
+ var stepFiveOccurs = false;
-var obj = {};
+ var obj = {};
-Object.defineProperty(obj, "length", {
- get: function() {
- stepTwoOccurs = true;
- if (stepFiveOccurs) {
- throw new Error("Step 5 occurred out of order");
- }
- return 20;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ stepTwoOccurs = true;
+ if (stepFiveOccurs) {
+ throw new Error("Step 5 occurred out of order");
+ }
+ return 20;
+ },
+ configurable: true
+ });
-var fromIndex = {
- valueOf: function() {
- stepFiveOccurs = true;
- return 0;
- }
-};
+ var fromIndex = {
+ valueOf: function () {
+ stepFiveOccurs = true;
+ return 0;
+ }
+ };
-Array.prototype.indexOf.call(obj, undefined, fromIndex);
+ Array.prototype.indexOf.call(obj, undefined, fromIndex);
assert(stepTwoOccurs, 'stepTwoOccurs !== true');
assert(stepFiveOccurs, 'stepFiveOccurs !== true');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-27.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-27.js
index ec03ca839..0207afac1 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-27.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-27.js
@@ -9,34 +9,34 @@ description: >
visible when an exception occurs
---*/
-var stepThreeOccurs = false;
-var stepFiveOccurs = false;
+ var stepThreeOccurs = false;
+ var stepFiveOccurs = false;
-var obj = {};
+ var obj = {};
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- valueOf: function() {
- stepThreeOccurs = true;
- if (stepFiveOccurs) {
- throw new Error("Step 5 occurred out of order");
- }
- return 20;
- }
- };
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ valueOf: function () {
+ stepThreeOccurs = true;
+ if (stepFiveOccurs) {
+ throw new Error("Step 5 occurred out of order");
+ }
+ return 20;
+ }
+ };
+ },
+ configurable: true
+ });
-var fromIndex = {
- valueOf: function() {
- stepFiveOccurs = true;
- return 0;
- }
-};
+ var fromIndex = {
+ valueOf: function () {
+ stepFiveOccurs = true;
+ return 0;
+ }
+ };
-Array.prototype.indexOf.call(obj, undefined, fromIndex);
+ Array.prototype.indexOf.call(obj, undefined, fromIndex);
assert(stepThreeOccurs, 'stepThreeOccurs !== true');
assert(stepFiveOccurs, 'stepFiveOccurs !== true');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-28.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-28.js
index 71adbb347..9e8383545 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-28.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-28.js
@@ -9,14 +9,14 @@ description: >
visible when an exception occurs
---*/
-var stepFiveOccurs = false;
-var fromIndex = {
- valueOf: function() {
- stepFiveOccurs = true;
- return 0;
- }
-};
+ var stepFiveOccurs = false;
+ var fromIndex = {
+ valueOf: function () {
+ stepFiveOccurs = true;
+ return 0;
+ }
+ };
assert.throws(TypeError, function() {
- Array.prototype.indexOf.call(undefined, undefined, fromIndex);
+ Array.prototype.indexOf.call(undefined, undefined, fromIndex);
});
assert.sameValue(stepFiveOccurs, false, 'stepFiveOccurs');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-29.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-29.js
index 373bbc7e5..30381433b 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-29.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-29.js
@@ -9,23 +9,23 @@ description: >
visible when an exception occurs
---*/
-var stepFiveOccurs = false;
+ var stepFiveOccurs = false;
-var obj = {};
-Object.defineProperty(obj, "length", {
- get: function() {
- throw new RangeError();
- },
- configurable: true
-});
+ var obj = {};
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ throw new RangeError();
+ },
+ configurable: true
+ });
-var fromIndex = {
- valueOf: function() {
- stepFiveOccurs = true;
- return 0;
- }
-};
+ var fromIndex = {
+ valueOf: function () {
+ stepFiveOccurs = true;
+ return 0;
+ }
+ };
assert.throws(RangeError, function() {
- Array.prototype.indexOf.call(obj, undefined, fromIndex);
+ Array.prototype.indexOf.call(obj, undefined, fromIndex);
});
assert.sameValue(stepFiveOccurs, false, 'stepFiveOccurs');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-3.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-3.js
index f9ec42cc8..9030d5314 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-3.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-3.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.14-5-3
description: Array.prototype.indexOf when fromIndex is boolean
---*/
-var a = [1, 2, 3];
+ var a = [1,2,3];
-assert.sameValue(a.indexOf(1, true), -1, 'true resolves to 1');
-assert.sameValue(a.indexOf(1, false), 0, 'false resolves to 0');
+assert.sameValue(a.indexOf(1,true), -1, 'true resolves to 1');
+assert.sameValue(a.indexOf(1,false), 0, 'false resolves to 0');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-30.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-30.js
index d3eac966c..9a229e976 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-30.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-30.js
@@ -9,27 +9,27 @@ description: >
visible when an exception occurs
---*/
-var stepFiveOccurs = false;
+ var stepFiveOccurs = false;
-var obj = {};
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- valueOf: function() {
- throw new TypeError();
- }
- };
- },
- configurable: true
-});
+ var obj = {};
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ valueOf: function () {
+ throw new TypeError();
+ }
+ };
+ },
+ configurable: true
+ });
-var fromIndex = {
- valueOf: function() {
- stepFiveOccurs = true;
- return 0;
- }
-};
+ var fromIndex = {
+ valueOf: function () {
+ stepFiveOccurs = true;
+ return 0;
+ }
+ };
assert.throws(TypeError, function() {
- Array.prototype.indexOf.call(obj, undefined, fromIndex);
+ Array.prototype.indexOf.call(obj, undefined, fromIndex);
});
assert.sameValue(stepFiveOccurs, false, 'stepFiveOccurs');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-31.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-31.js
index 64442d0db..9a7f1d3ff 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-31.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-31.js
@@ -9,7 +9,7 @@ description: >
verify truncation occurs in the proper direction
---*/
-var targetObj = {};
+ var targetObj = {};
assert.sameValue([0, targetObj, 2].indexOf(targetObj, 2.5), -1, '[0, targetObj, 2].indexOf(targetObj, 2.5)');
assert.sameValue([0, 1, targetObj].indexOf(targetObj, 2.5), 2, '[0, 1, targetObj].indexOf(targetObj, 2.5)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-32.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-32.js
index a11186d51..df4812b78 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-32.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-32.js
@@ -9,7 +9,7 @@ description: >
verify truncation occurs in the proper direction
---*/
-var targetObj = {};
+ var targetObj = {};
assert.sameValue([0, targetObj, 2].indexOf(targetObj, -1.5), -1, '[0, targetObj, 2].indexOf(targetObj, -1.5)');
assert.sameValue([0, 1, targetObj].indexOf(targetObj, -1.5), 2, '[0, 1, targetObj].indexOf(targetObj, -1.5)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-4.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-4.js
index 4230ef2bc..3611b1799 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-4.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-4.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.14-5-4
description: Array.prototype.indexOf returns 0 if fromIndex is 'undefined'
---*/
-var a = [1, 2, 3];
+ var a = [1,2,3];
// undefined resolves to 0
-assert.sameValue(a.indexOf(1, undefined), 0, 'a.indexOf(1,undefined)');
+assert.sameValue(a.indexOf(1,undefined), 0, 'a.indexOf(1,undefined)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-5.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-5.js
index 4cd4418d5..9056a5fe9 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-5.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-5.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.14-5-5
description: Array.prototype.indexOf returns 0 if fromIndex is null
---*/
-var a = [1, 2, 3];
+ var a = [1,2,3];
// null resolves to 0
-assert.sameValue(a.indexOf(1, null), 0, 'a.indexOf(1,null)');
+assert.sameValue(a.indexOf(1,null), 0, 'a.indexOf(1,null)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-6.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-6.js
index 2ea05b825..69610b347 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-6.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-6.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.14-5-6
description: Array.prototype.indexOf - 'fromIndex' isn't passed
---*/
-var arr = [0, 1, 2, 3, 4];
-//'fromIndex' will be set as 0 if not passed by default
+ var arr = [0, 1, 2, 3, 4];
+ //'fromIndex' will be set as 0 if not passed by default
assert.sameValue(arr.indexOf(0), arr.indexOf(0, 0), 'arr.indexOf(0)');
assert.sameValue(arr.indexOf(2), arr.indexOf(2, 0), 'arr.indexOf(2)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-6-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-6-1.js
index 1309ad967..f2da76943 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-6-1.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-6-1.js
@@ -9,8 +9,8 @@ description: >
Array length
---*/
-var a = [1, 2, 3];
+ var a = [1,2,3];
-assert.sameValue(a.indexOf(1, 5), -1, 'a.indexOf(1,5)');
-assert.sameValue(a.indexOf(1, 3), -1, 'a.indexOf(1,3)');
-assert.sameValue([].indexOf(1, 0), -1, '[ ].indexOf(1,0)');
+assert.sameValue(a.indexOf(1,5), -1, 'a.indexOf(1,5)');
+assert.sameValue(a.indexOf(1,3), -1, 'a.indexOf(1,3)');
+assert.sameValue([ ].indexOf(1,0), -1, '[ ].indexOf(1,0)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-8-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-8-1.js
index 4531f8051..57d4f191d 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-8-1.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-8-1.js
@@ -7,10 +7,10 @@ es5id: 15.4.4.14-8-1
description: Array.prototype.indexOf with negative fromIndex
---*/
-var a = new Array(1, 2, 3);
+ var a = new Array(1,2,3);
-assert.sameValue(a.indexOf(2, -1), -1, 'a.indexOf(2,-1)');
-assert.sameValue(a.indexOf(2, -2), 1, 'a.indexOf(2,-2)');
-assert.sameValue(a.indexOf(1, -3), 0, 'a.indexOf(1,-3)');
-assert.sameValue(a.indexOf(1, -5.3), 0, 'a.indexOf(1,-5.3)');
+assert.sameValue(a.indexOf(2,-1), -1, 'a.indexOf(2,-1)');
+assert.sameValue(a.indexOf(2,-2), 1, 'a.indexOf(2,-2)');
+assert.sameValue(a.indexOf(1,-3), 0, 'a.indexOf(1,-3)');
+assert.sameValue(a.indexOf(1,-5.3), 0, 'a.indexOf(1,-5.3)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-1.js
index 91a596078..94125fa81 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-1.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-1.js
@@ -7,13 +7,9 @@ es5id: 15.4.4.14-9-1
description: Array.prototype.indexOf must return correct index (boolean)
---*/
-var obj = {
- toString: function() {
- return true
- }
-};
-var _false = false;
-var a = [obj, "true", undefined, 0, _false, null, 1, "str", 0, 1, true, false, true, false];
+ var obj = {toString:function (){return true}};
+ var _false = false;
+ var a = [obj,"true", undefined,0,_false,null,1,"str",0,1,true,false,true,false];
-assert.sameValue(a.indexOf(true), 10, 'a[10]=true');
-assert.sameValue(a.indexOf(false), 4, 'a[4] =_false');
+ assert.sameValue(a.indexOf(true), 10, 'a[10]=true');
+ assert.sameValue(a.indexOf(false), 4, 'a[4] =_false');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-10.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-10.js
index 92ebaa80a..4b3ec82c6 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-10.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-10.js
@@ -10,11 +10,7 @@ es5id: 15.4.4.14-9-10
description: Array.prototype.indexOf must return correct index (NaN)
---*/
-var _NaN = NaN;
-var a = new Array("NaN", undefined, 0, false, null, {
- toString: function() {
- return NaN
- }
-}, "false", _NaN, NaN);
+ var _NaN = NaN;
+ var a = new Array("NaN",undefined,0,false,null,{toString:function (){return NaN}},"false",_NaN,NaN);
assert.sameValue(a.indexOf(NaN), -1, 'NaN is equal to nothing, including itself.');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-11.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-11.js
index 77108424d..cf1aac541 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-11.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-11.js
@@ -9,14 +9,14 @@ description: >
adding elements to the array during iteration
---*/
-var arr = [20];
+ var arr = [20];
-Object.defineProperty(arr, "0", {
- get: function() {
- arr[1] = 1;
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ arr[1] = 1;
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(arr.indexOf(1), -1, 'arr.indexOf(1)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-2.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-2.js
index 410a7c0ef..fcce013d2 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-2.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-2.js
@@ -7,16 +7,12 @@ es5id: 15.4.4.14-9-2
description: Array.prototype.indexOf must return correct index (Number)
---*/
-var obj = {
- toString: function() {
- return 0
- }
-};
-var one = 1;
-var _float = -(4 / 3);
-var a = new Array(false, undefined, null, "0", obj, -1.3333333333333, "str", -0, true, +0, one, 1, 0, false, _float, -(4 / 3));
+ var obj = {toString:function (){return 0}};
+ var one = 1;
+ var _float = -(4/3);
+ var a = new Array(false,undefined,null,"0",obj,-1.3333333333333, "str",-0,true,+0, one, 1,0, false, _float, -(4/3));
-assert.sameValue(a.indexOf(-(4 / 3)), 14, 'a[14]=_float===-(4/3)');
+assert.sameValue(a.indexOf(-(4/3)), 14, 'a[14]=_float===-(4/3)');
assert.sameValue(a.indexOf(0), 7, 'a[7] = +0, 0===+0');
assert.sameValue(a.indexOf(-0), 7, 'a[7] = +0, -0===+0');
assert.sameValue(a.indexOf(1), 10, 'a[10] =one=== 1');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-3.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-3.js
index 8b4ff007c..3c83a98d9 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-3.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-3.js
@@ -7,12 +7,8 @@ es5id: 15.4.4.14-9-3
description: Array.prototype.indexOf must return correct index(string)
---*/
-var obj = {
- toString: function() {
- return "false"
- }
-};
-var szFalse = "false";
-var a = new Array("false1", undefined, 0, false, null, 1, obj, 0, szFalse, "false");
+ var obj = {toString:function (){return "false"}};
+ var szFalse = "false";
+ var a = new Array("false1",undefined,0,false,null,1,obj,0,szFalse, "false");
assert.sameValue(a.indexOf("false"), 8, 'a[8]=szFalse');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-4.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-4.js
index 697f91967..d0b3a3a3e 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-4.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-4.js
@@ -7,13 +7,9 @@ es5id: 15.4.4.14-9-4
description: Array.prototype.indexOf must return correct index(undefined)
---*/
-var obj = {
- toString: function() {
- return undefined;
- }
-};
-var _undefined1 = undefined;
-var _undefined2;
-var a = new Array(true, 0, false, null, 1, "undefined", obj, 1, _undefined2, _undefined1, undefined);
+ var obj = {toString:function (){return undefined;}};
+ var _undefined1 = undefined;
+ var _undefined2;
+ var a = new Array(true,0,false,null,1,"undefined",obj,1,_undefined2,_undefined1,undefined);
assert.sameValue(a.indexOf(undefined), 8, 'a[8]=_undefined2');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-5.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-5.js
index 8537c3ac3..3a31b1477 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-5.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-5.js
@@ -7,21 +7,9 @@ es5id: 15.4.4.14-9-5
description: Array.prototype.indexOf must return correct index (Object)
---*/
-var obj1 = {
- toString: function() {
- return "false"
- }
-};
-var obj2 = {
- toString: function() {
- return "false"
- }
-};
-var obj3 = obj1;
-var a = new Array(false, undefined, 0, false, null, {
- toString: function() {
- return "false"
- }
-}, "false", obj2, obj1, obj3);
+ var obj1 = {toString:function (){return "false"}};
+ var obj2 = {toString:function (){return "false"}};
+ var obj3 = obj1;
+ var a = new Array(false,undefined,0,false,null,{toString:function (){return "false"}},"false",obj2,obj1,obj3);
assert.sameValue(a.indexOf(obj3), 8, 'a[8] = obj1');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-6.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-6.js
index cb657505b..adb3280e8 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-6.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-6.js
@@ -7,12 +7,8 @@ es5id: 15.4.4.14-9-6
description: Array.prototype.indexOf must return correct index(null)
---*/
-var obj = {
- toString: function() {
- return null
- }
-};
-var _null = null;
-var a = new Array(true, undefined, 0, false, _null, 1, "str", 0, 1, obj, true, false, null);
+ var obj = {toString:function (){return null}};
+ var _null = null;
+ var a = new Array(true,undefined,0,false,_null,1,"str",0,1,obj,true,false,null);
assert.sameValue(a.indexOf(null), 4, 'a[4]=_null');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-7.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-7.js
index 0a8028b4e..33bf64933 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-7.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-7.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.14-9-7
description: Array.prototype.indexOf must return correct index (self reference)
---*/
-var a = new Array(0, 1, 2, 3);
-a[2] = a;
+ var a = new Array(0,1,2,3);
+ a[2] = a;
assert.sameValue(a.indexOf(a), 2, 'a.indexOf(a)');
assert.sameValue(a.indexOf(3), 3, 'a.indexOf(3)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-8.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-8.js
index 7e07ce058..86889e437 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-8.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-8.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.14-9-8
description: Array.prototype.indexOf must return correct index (Array)
---*/
-var b = new Array("0,1");
-var a = new Array(0, b, "0,1", 3);
+ var b = new Array("0,1");
+ var a = new Array(0,b,"0,1",3);
assert.sameValue(a.indexOf(b.toString()), 2, 'a.indexOf(b.toString())');
assert.sameValue(a.indexOf("0,1"), 2, 'a.indexOf("0,1")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-9.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-9.js
index 800f568bf..82fc8113c 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-9.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-9.js
@@ -7,15 +7,15 @@ es5id: 15.4.4.14-9-9
description: Array.prototype.indexOf must return correct index (Sparse Array)
---*/
-var a = new Array(0, 1);
-a[4294967294] = 2; // 2^32-2 - is max array element
-a[4294967295] = 3; // 2^32-1 added as non-array element property
-a[4294967296] = 4; // 2^32 added as non-array element property
-a[4294967297] = 5; // 2^32+1 added as non-array element property
+ var a = new Array(0,1);
+ a[4294967294] = 2; // 2^32-2 - is max array element
+ a[4294967295] = 3; // 2^32-1 added as non-array element property
+ a[4294967296] = 4; // 2^32 added as non-array element property
+ a[4294967297] = 5; // 2^32+1 added as non-array element property
-// start searching near the end so in case implementation actually tries to test all missing elements!!
+ // start searching near the end so in case implementation actually tries to test all missing elements!!
-assert.sameValue(a.indexOf(2, 4294967290), 4294967294, 'a.indexOf(2,4294967290 )');
-assert.sameValue(a.indexOf(3, 4294967290), -1, 'a.indexOf(3,4294967290)');
-assert.sameValue(a.indexOf(4, 4294967290), -1, 'a.indexOf(4,4294967290)');
-assert.sameValue(a.indexOf(5, 4294967290), -1, 'a.indexOf(5,4294967290)');
+assert.sameValue(a.indexOf(2,4294967290 ), 4294967294, 'a.indexOf(2,4294967290 )');
+assert.sameValue(a.indexOf(3,4294967290), -1, 'a.indexOf(3,4294967290)');
+assert.sameValue(a.indexOf(4,4294967290), -1, 'a.indexOf(4,4294967290)');
+assert.sameValue(a.indexOf(5,4294967290), -1, 'a.indexOf(5,4294967290)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-1.js
index 043314c60..0d17a2be4 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-1.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-1.js
@@ -9,14 +9,14 @@ description: >
here
---*/
-var arr = {};
+ var arr = { };
-Object.defineProperty(arr, "length", {
- get: function() {
- arr[2] = "length";
- return 3;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "length", {
+ get: function () {
+ arr[2] = "length";
+ return 3;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.indexOf.call(arr, "length"), 2, 'Array.prototype.indexOf.call(arr, "length")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-10.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-10.js
index 4a2797e62..ff6b0a9c8 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-10.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-10.js
@@ -9,19 +9,19 @@ description: >
after current position are visited on an Array
---*/
-var arr = [0, , 2];
+ var arr = [0, , 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- Object.defineProperty(Array.prototype, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ Object.defineProperty(Array.prototype, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(arr.indexOf(6.99), 1, 'arr.indexOf(6.99)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-11.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-11.js
index 65e504325..6e9587d5a 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-11.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-11.js
@@ -9,23 +9,21 @@ description: >
property not to be visited on an Array-like object
---*/
-var arr = {
- length: 2
-};
+ var arr = { length: 2 };
-Object.defineProperty(arr, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "0", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.indexOf.call(arr, 6.99), -1, 'Array.prototype.indexOf.call(arr, 6.99)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-12.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-12.js
index d07f4a710..172dd1133 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-12.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-12.js
@@ -9,21 +9,21 @@ description: >
property not to be visited on an Array
---*/
-var arr = [1, 2];
+ var arr = [1, 2];
-Object.defineProperty(arr, "1", {
- get: function() {
- return "6.99";
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return "6.99";
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "0", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(arr.indexOf("6.99"), -1, 'arr.indexOf("6.99")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-13.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-13.js
index f45f555cf..2390e6e7f 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-13.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-13.js
@@ -9,19 +9,16 @@ description: >
prototype index property not to be visited on an Array-like Object
---*/
-var arr = {
- 2: 2,
- length: 20
-};
+ var arr = { 2: 2, length: 20 };
-Object.defineProperty(arr, "0", {
- get: function() {
- delete Object.prototype[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete Object.prototype[1];
+ return 0;
+ },
+ configurable: true
+ });
-Object.prototype[1] = 1;
+ Object.prototype[1] = 1;
assert.sameValue(Array.prototype.indexOf.call(arr, 1), -1, 'Array.prototype.indexOf.call(arr, 1)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-14.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-14.js
index 216e4da0b..81cbe7b98 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-14.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-14.js
@@ -9,16 +9,16 @@ description: >
prototype index property not to be visited on an Array
---*/
-var arr = [0, , 2];
+ var arr = [0, , 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- delete Array.prototype[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete Array.prototype[1];
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype[1] = 1;
+ Array.prototype[1] = 1;
assert.sameValue(arr.indexOf(1), -1, 'arr.indexOf(1)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-15.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-15.js
index 5c5be6dc9..c7c60d7c4 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-15.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-15.js
@@ -10,21 +10,16 @@ description: >
Array-like object
---*/
-var arr = {
- 0: 0,
- 1: 111,
- 2: 2,
- length: 10
-};
+ var arr = { 0: 0, 1: 111, 2: 2, length: 10 };
-Object.defineProperty(arr, "0", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
-Object.prototype[1] = 1;
+ Object.prototype[1] = 1;
assert.sameValue(Array.prototype.indexOf.call(arr, 1), 1, 'Array.prototype.indexOf.call(arr, 1)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-16.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-16.js
index ed4072719..707207440 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-16.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-16.js
@@ -9,16 +9,16 @@ description: >
property causes prototype index property to be visited on an Array
---*/
-var arr = [0, 111, 2];
+ var arr = [0, 111, 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype[1] = 1;
+ Array.prototype[1] = 1;
assert.sameValue(arr.indexOf(1), 1, 'arr.indexOf(1)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-17.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-17.js
index 8309a3b86..74a6eddb4 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-17.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-17.js
@@ -9,14 +9,14 @@ description: >
property not to be visited
---*/
-var arr = [0, 1, 2, "last"];
+ var arr = [0, 1, 2, "last"];
-Object.defineProperty(arr, "0", {
- get: function() {
- arr.length = 3;
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ arr.length = 3;
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(arr.indexOf("last"), -1, 'arr.indexOf("last")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-18.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-18.js
index 1d728bce1..f1e2fa4f4 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-18.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-18.js
@@ -9,21 +9,21 @@ description: >
prototype property causes prototype index property to be visited
---*/
-var arr = [0, 1, 2];
+ var arr = [0, 1, 2];
-Object.defineProperty(Array.prototype, "2", {
- get: function() {
- return "prototype";
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "2", {
+ get: function () {
+ return "prototype";
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- arr.length = 2;
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ arr.length = 2;
+ return 1;
+ },
+ configurable: true
+ });
assert.sameValue(arr.indexOf("prototype"), 2, 'arr.indexOf("prototype")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-19.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-19.js
index 0fab8d12b..b30be5fda 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-19.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-19.js
@@ -10,22 +10,22 @@ description: >
flags: [noStrict]
---*/
-var arr = [0, 1, 2];
+ var arr = [0, 1, 2];
-Object.defineProperty(arr, "2", {
- get: function() {
- return "unconfigurable";
- },
- configurable: false
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ return "unconfigurable";
+ },
+ configurable: false
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- arr.length = 2;
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ arr.length = 2;
+ return 1;
+ },
+ configurable: true
+ });
assert.sameValue(arr.indexOf("unconfigurable"), 2, 'arr.indexOf("unconfigurable")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-2.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-2.js
index fac0434b9..a0e8b8295 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-2.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-2.js
@@ -9,17 +9,15 @@ description: >
here on an Array-like object
---*/
-var arr = {
- length: 30
-};
-var targetObj = function() {};
+ var arr = { length: 30 };
+ var targetObj = function () { };
-var fromIndex = {
- valueOf: function() {
- arr[4] = targetObj;
- return 3;
- }
-};
+ var fromIndex = {
+ valueOf: function () {
+ arr[4] = targetObj;
+ return 3;
+ }
+ };
assert.sameValue(Array.prototype.indexOf.call(arr, targetObj, fromIndex), 4, 'Array.prototype.indexOf.call(arr, targetObj, fromIndex)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-3.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-3.js
index d7954ea90..5ac6827ee 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-3.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-3.js
@@ -9,15 +9,15 @@ description: >
here on an Array
---*/
-var arr = [];
-arr.length = 30;
-var targetObj = function() {};
+ var arr = [];
+ arr.length = 30;
+ var targetObj = function () { };
-var fromIndex = {
- valueOf: function() {
- arr[4] = targetObj;
- return 3;
- }
-};
+ var fromIndex = {
+ valueOf: function () {
+ arr[4] = targetObj;
+ return 3;
+ }
+ };
assert.sameValue(arr.indexOf(targetObj, fromIndex), 4, 'arr.indexOf(targetObj, fromIndex)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-4.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-4.js
index 1340a1d67..8a5e756c5 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-4.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-4.js
@@ -9,16 +9,14 @@ description: >
here
---*/
-var arr = {
- 2: 6.99
-};
+ var arr = { 2: 6.99 };
-Object.defineProperty(arr, "length", {
- get: function() {
- delete arr[2];
- return 3;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "length", {
+ get: function () {
+ delete arr[2];
+ return 3;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.indexOf.call(arr, 6.99), -1, 'Array.prototype.indexOf.call(arr, 6.99)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-5.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-5.js
index 926a37aeb..255c327a3 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-5.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-5.js
@@ -9,16 +9,13 @@ description: >
here on an Array-like object
---*/
-var arr = {
- 10: false,
- length: 30
-};
+ var arr = { 10: false, length: 30 };
-var fromIndex = {
- valueOf: function() {
- delete arr[10];
- return 3;
- }
-};
+ var fromIndex = {
+ valueOf: function () {
+ delete arr[10];
+ return 3;
+ }
+ };
assert.sameValue(Array.prototype.indexOf.call(arr, false, fromIndex), -1, 'Array.prototype.indexOf.call(arr, false, fromIndex)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-6.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-6.js
index 41e275c6c..e78f717c3 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-6.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-6.js
@@ -9,15 +9,15 @@ description: >
here on an Array
---*/
-var arr = [];
-arr[10] = "10";
-arr.length = 20;
+ var arr = [];
+ arr[10] = "10";
+ arr.length = 20;
-var fromIndex = {
- valueOf: function() {
- delete arr[10];
- return 3;
- }
-};
+ var fromIndex = {
+ valueOf: function () {
+ delete arr[10];
+ return 3;
+ }
+ };
assert.sameValue(arr.indexOf("10", fromIndex), -1, 'arr.indexOf("10", fromIndex)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-7.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-7.js
index 317816ab6..58e38614c 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-7.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-7.js
@@ -9,21 +9,19 @@ description: >
current position are visited on an Array-like object
---*/
-var arr = {
- length: 2
-};
+ var arr = { length: 2 };
-Object.defineProperty(arr, "0", {
- get: function() {
- Object.defineProperty(arr, "1", {
- get: function() {
- return 1;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.indexOf.call(arr, 1), 1, 'Array.prototype.indexOf.call(arr, 1)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-8.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-8.js
index af3577d7d..aa43ed573 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-8.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-8.js
@@ -9,19 +9,19 @@ description: >
current position are visited on an Array
---*/
-var arr = [0, , 2];
+ var arr = [0, , 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- Object.defineProperty(arr, "1", {
- get: function() {
- return 1;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(arr.indexOf(1), 1, 'arr.indexOf(1)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-9.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-9.js
index 22ea6154a..e36af343d 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-9.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-9.js
@@ -9,21 +9,19 @@ description: >
after current position are visited on an Array-like object
---*/
-var arr = {
- length: 2
-};
+ var arr = { length: 2 };
-Object.defineProperty(arr, "0", {
- get: function() {
- Object.defineProperty(Object.prototype, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ Object.defineProperty(Object.prototype, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.indexOf.call(arr, 6.99), 1, 'Array.prototype.indexOf.call(arr, 6.99)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-1.js
index 211c212cc..dc8bba867 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-1.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-1.js
@@ -9,12 +9,7 @@ description: >
property on an Array-like object
---*/
-var obj = {
- 0: 0,
- 1: 1,
- 2: 2,
- length: 3
-};
+ var obj = { 0: 0, 1: 1, 2: 2, length: 3 };
assert.sameValue(Array.prototype.indexOf.call(obj, 0), 0, 'Array.prototype.indexOf.call(obj, 0)');
assert.sameValue(Array.prototype.indexOf.call(obj, 1), 1, 'Array.prototype.indexOf.call(obj, 1)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-10.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-10.js
index af735dd41..8cf69e48d 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-10.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-10.js
@@ -9,29 +9,27 @@ description: >
property on an Array-like object
---*/
-var obj = {
- length: 3
-};
-Object.defineProperty(obj, "0", {
- get: function() {
- return 0;
- },
- configurable: true
-});
+ var obj = { length: 3 };
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ return 0;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "1", {
- get: function() {
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "2", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "2", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.indexOf.call(obj, 0), 0, 'Array.prototype.indexOf.call(obj, 0)');
assert.sameValue(Array.prototype.indexOf.call(obj, 1), 1, 'Array.prototype.indexOf.call(obj, 1)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-11.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-11.js
index d744fec56..0d1ca8e70 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-11.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-11.js
@@ -9,14 +9,14 @@ description: >
property that overrides an inherited data property on an Array
---*/
-var arr = [];
+ var arr = [];
-Array.prototype[0] = false;
-Object.defineProperty(arr, "0", {
- get: function() {
- return true;
- },
- configurable: true
-});
+ Array.prototype[0] = false;
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ return true;
+ },
+ configurable: true
+ });
assert.sameValue(arr.indexOf(true), 0, 'arr.indexOf(true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-12.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-12.js
index 77f337f6b..de13d9f38 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-12.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-12.js
@@ -10,16 +10,14 @@ description: >
Array-like object
---*/
-var obj = {
- length: 1
-};
+ var obj = { length: 1 };
-Object.prototype[0] = false;
-Object.defineProperty(obj, "0", {
- get: function() {
- return true;
- },
- configurable: true
-});
+ Object.prototype[0] = false;
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ return true;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.indexOf.call(obj, true), 0, 'Array.prototype.indexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-13.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-13.js
index f260b91bf..27be95dc6 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-13.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-13.js
@@ -9,20 +9,20 @@ description: >
property that overrides an inherited accessor property on an Array
---*/
-var arr = [];
+ var arr = [];
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return false;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return false;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "0", {
- get: function() {
- return true;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ return true;
+ },
+ configurable: true
+ });
assert.sameValue(arr.indexOf(true), 0, 'arr.indexOf(true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-14.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-14.js
index b3133a5bc..265667e71 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-14.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-14.js
@@ -10,22 +10,20 @@ description: >
Array-like object
---*/
-var obj = {
- length: 1
-};
+ var obj = { length: 1 };
-Object.defineProperty(Object.prototype, "0", {
- get: function() {
- return false;
- },
- configurable: true
-});
+ Object.defineProperty(Object.prototype, "0", {
+ get: function () {
+ return false;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "0", {
- get: function() {
- return true;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ return true;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.indexOf.call(obj, true), 0, 'Array.prototype.indexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-15.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-15.js
index e9f5b47b7..44b2da7af 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-15.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-15.js
@@ -9,26 +9,26 @@ description: >
accessor property on an Array
---*/
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return 10;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return 10;
+ },
+ configurable: true
+ });
-Object.defineProperty(Array.prototype, "1", {
- get: function() {
- return 20;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "1", {
+ get: function () {
+ return 20;
+ },
+ configurable: true
+ });
-Object.defineProperty(Array.prototype, "2", {
- get: function() {
- return 30;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "2", {
+ get: function () {
+ return 30;
+ },
+ configurable: true
+ });
assert.sameValue([, , , ].indexOf(10), 0, '[, , , ].indexOf(10)');
assert.sameValue([, , , ].indexOf(20), 1, '[, , , ].indexOf(20)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-16.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-16.js
index 8a8057ee9..754db8aad 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-16.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-16.js
@@ -9,33 +9,27 @@ description: >
accessor property on an Array-like object
---*/
-Object.defineProperty(Object.prototype, "0", {
- get: function() {
- return 10;
- },
- configurable: true
-});
+ Object.defineProperty(Object.prototype, "0", {
+ get: function () {
+ return 10;
+ },
+ configurable: true
+ });
-Object.defineProperty(Object.prototype, "1", {
- get: function() {
- return 20;
- },
- configurable: true
-});
+ Object.defineProperty(Object.prototype, "1", {
+ get: function () {
+ return 20;
+ },
+ configurable: true
+ });
-Object.defineProperty(Object.prototype, "2", {
- get: function() {
- return 30;
- },
- configurable: true
-});
+ Object.defineProperty(Object.prototype, "2", {
+ get: function () {
+ return 30;
+ },
+ configurable: true
+ });
-assert.sameValue(Array.prototype.indexOf.call({
- length: 3
-}, 10), 0, 'Array.prototype.indexOf.call({ length: 3 }, 10)');
-assert.sameValue(Array.prototype.indexOf.call({
- length: 3
-}, 20), 1, 'Array.prototype.indexOf.call({ length: 3 }, 20)');
-assert.sameValue(Array.prototype.indexOf.call({
- length: 3
-}, 30), 2, 'Array.prototype.indexOf.call({ length: 3 }, 30)');
+assert.sameValue(Array.prototype.indexOf.call({ length: 3 }, 10), 0, 'Array.prototype.indexOf.call({ length: 3 }, 10)');
+assert.sameValue(Array.prototype.indexOf.call({ length: 3 }, 20), 1, 'Array.prototype.indexOf.call({ length: 3 }, 20)');
+assert.sameValue(Array.prototype.indexOf.call({ length: 3 }, 30), 2, 'Array.prototype.indexOf.call({ length: 3 }, 30)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-17.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-17.js
index 9ffbbe16c..551e2a30e 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-17.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-17.js
@@ -9,10 +9,10 @@ description: >
property without a get function on an Array
---*/
-var arr = [];
-Object.defineProperty(arr, "0", {
- set: function() {},
- configurable: true
-});
+ var arr = [];
+ Object.defineProperty(arr, "0", {
+ set: function () { },
+ configurable: true
+ });
assert.sameValue(arr.indexOf(undefined), 0, 'arr.indexOf(undefined)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-18.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-18.js
index e79db90e3..4701e3fd8 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-18.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-18.js
@@ -9,12 +9,10 @@ description: >
property without a get function on an Array-like object
---*/
-var obj = {
- length: 1
-};
-Object.defineProperty(obj, "0", {
- set: function() {},
- configurable: true
-});
+ var obj = { length: 1 };
+ Object.defineProperty(obj, "0", {
+ set: function () { },
+ configurable: true
+ });
assert.sameValue(Array.prototype.indexOf.call(obj, undefined), 0, 'Array.prototype.indexOf.call(obj, undefined)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-19.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-19.js
index 2ded8363e..b640d8965 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-19.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-19.js
@@ -10,18 +10,18 @@ description: >
accessor property on an Array
---*/
-var arr = [];
+ var arr = [];
-Object.defineProperty(arr, "0", {
- set: function() {},
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ set: function () { },
+ configurable: true
+ });
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
assert.sameValue(arr.indexOf(undefined), 0, 'arr.indexOf(undefined)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-20.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-20.js
index 793084e9e..56508fe50 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-20.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-20.js
@@ -10,23 +10,23 @@ description: >
accessor property on an Array-like object
---*/
-var proto = {};
-Object.defineProperty(proto, "0", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ var proto = {};
+ Object.defineProperty(proto, "0", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child.length = 1;
+ var child = new Con();
+ child.length = 1;
-Object.defineProperty(child, "0", {
- set: function() {},
- configurable: true
-});
+ Object.defineProperty(child, "0", {
+ set: function () { },
+ configurable: true
+ });
assert.sameValue(Array.prototype.indexOf.call(child, undefined), 0, 'Array.prototype.indexOf.call(child, undefined)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-21.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-21.js
index ffc933148..24144df08 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-21.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-21.js
@@ -9,9 +9,9 @@ description: >
accessor property without a get function on an Array
---*/
-Object.defineProperty(Array.prototype, "0", {
- set: function() {},
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ set: function () { },
+ configurable: true
+ });
assert.sameValue([, ].indexOf(undefined), 0, '[, ].indexOf(undefined)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-22.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-22.js
index f9fa4d41a..922d2e7ce 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-22.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-22.js
@@ -9,11 +9,9 @@ description: >
accessor property without a get function on an Array-like object
---*/
-Object.defineProperty(Object.prototype, "0", {
- set: function() {},
- configurable: true
-});
+ Object.defineProperty(Object.prototype, "0", {
+ set: function () { },
+ configurable: true
+ });
-assert.sameValue(Array.prototype.indexOf.call({
- length: 1
-}, undefined), 0, 'Array.prototype.indexOf.call({ length: 1 }, undefined)');
+assert.sameValue(Array.prototype.indexOf.call({ length: 1 }, undefined), 0, 'Array.prototype.indexOf.call({ length: 1 }, undefined)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-25.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-25.js
index 4e5bb8b13..b2f3bc442 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-25.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-25.js
@@ -10,9 +10,9 @@ description: >
less than number of parameters)
---*/
-var func = function(a, b) {
- return 0 === Array.prototype.indexOf.call(arguments, arguments[0]) &&
- -1 === Array.prototype.indexOf.call(arguments, arguments[1]);
-};
+ var func = function (a, b) {
+ return 0 === Array.prototype.indexOf.call(arguments, arguments[0]) &&
+ -1 === Array.prototype.indexOf.call(arguments, arguments[1]);
+ };
assert(func(true), 'func(true) !== true');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-26.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-26.js
index caa167d9d..330ea1966 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-26.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-26.js
@@ -10,10 +10,10 @@ description: >
to number of parameters)
---*/
-var func = function(a, b) {
- return 0 === Array.prototype.indexOf.call(arguments, arguments[0]) &&
- 1 === Array.prototype.indexOf.call(arguments, arguments[1]) &&
- -1 === Array.prototype.indexOf.call(arguments, arguments[2]);
-};
+ var func = function (a, b) {
+ return 0 === Array.prototype.indexOf.call(arguments, arguments[0]) &&
+ 1 === Array.prototype.indexOf.call(arguments, arguments[1]) &&
+ -1 === Array.prototype.indexOf.call(arguments, arguments[2]);
+ };
assert(func(0, true), 'func(0, true) !== true');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-27.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-27.js
index 02017a929..5935f22ba 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-27.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-27.js
@@ -10,10 +10,10 @@ description: >
greater than number of parameters)
---*/
-var func = function(a, b) {
- return 0 === Array.prototype.indexOf.call(arguments, arguments[0]) &&
- 3 === Array.prototype.indexOf.call(arguments, arguments[3]) &&
- -1 === Array.prototype.indexOf.call(arguments, arguments[4]);
-};
+ var func = function (a, b) {
+ return 0 === Array.prototype.indexOf.call(arguments, arguments[0]) &&
+ 3 === Array.prototype.indexOf.call(arguments, arguments[3]) &&
+ -1 === Array.prototype.indexOf.call(arguments, arguments[4]);
+ };
assert(func(0, false, 0, true), 'func(0, false, 0, true) !== true');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-28.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-28.js
index 2a13283be..dc9119d68 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-28.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-28.js
@@ -9,26 +9,26 @@ description: >
iterations on an Array
---*/
-var preIterVisible = false;
-var arr = [];
+ var preIterVisible = false;
+ var arr = [];
-Object.defineProperty(arr, "0", {
- get: function() {
- preIterVisible = true;
- return false;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ preIterVisible = true;
+ return false;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- if (preIterVisible) {
- return true;
- } else {
- return false;
- }
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ if (preIterVisible) {
+ return true;
+ } else {
+ return false;
+ }
+ },
+ configurable: true
+ });
assert.sameValue(arr.indexOf(true), 1, 'arr.indexOf(true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-29.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-29.js
index 475817a8e..1c941586e 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-29.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-29.js
@@ -9,28 +9,26 @@ description: >
iterations on an Array-like object
---*/
-var preIterVisible = false;
-var obj = {
- length: 2
-};
+ var preIterVisible = false;
+ var obj = { length: 2 };
-Object.defineProperty(obj, "0", {
- get: function() {
- preIterVisible = true;
- return false;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ preIterVisible = true;
+ return false;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "1", {
- get: function() {
- if (preIterVisible) {
- return true;
- } else {
- return false;
- }
- },
- configurable: true
-});
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ if (preIterVisible) {
+ return true;
+ } else {
+ return false;
+ }
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-3.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-3.js
index 84006e81e..1df5d9eb9 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-3.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-3.js
@@ -9,6 +9,6 @@ description: >
property that overrides an inherited data property on an Array
---*/
-Array.prototype[0] = false;
+ Array.prototype[0] = false;
assert.sameValue([true].indexOf(true), 0, '[true].indexOf(true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-30.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-30.js
index c2c8d1350..440a31448 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-30.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-30.js
@@ -9,24 +9,24 @@ description: >
exception on an Array
---*/
-var accessed = false;
-var arr = [];
+ var accessed = false;
+ var arr = [];
-Object.defineProperty(arr, "0", {
- get: function() {
- throw new TypeError();
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ throw new TypeError();
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- accessed = true;
- return true;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ accessed = true;
+ return true;
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- arr.indexOf(true);
+ arr.indexOf(true);
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-31.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-31.js
index 8977a9893..9cae879bc 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-31.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-31.js
@@ -9,26 +9,24 @@ description: >
exception on an Array-like object
---*/
-var accessed = false;
-var obj = {
- length: 2
-};
+ var accessed = false;
+ var obj = { length: 2 };
-Object.defineProperty(obj, "0", {
- get: function() {
- throw new TypeError();
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ 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.indexOf.call(obj, true);
+ Array.prototype.indexOf.call(obj, true);
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-4.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-4.js
index 892068426..171ced904 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-4.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-4.js
@@ -10,10 +10,6 @@ description: >
Array-like object
---*/
-Object.prototype[0] = false;
+ Object.prototype[0] = false;
-assert.sameValue(Array.prototype.indexOf.call({
- 0: true,
- 1: 1,
- length: 2
-}, true), 0, 'Array.prototype.indexOf.call({ 0: true, 1: 1, length: 2 }, true)');
+assert.sameValue(Array.prototype.indexOf.call({ 0: true, 1: 1, length: 2 }, true), 0, 'Array.prototype.indexOf.call({ 0: true, 1: 1, length: 2 }, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-5.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-5.js
index 1d4332e74..24a407691 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-5.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-5.js
@@ -9,11 +9,11 @@ description: >
property that overrides an inherited accessor property on an Array
---*/
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return false;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return false;
+ },
+ configurable: true
+ });
assert.sameValue([true].indexOf(true), 0, '[true].indexOf(true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-6.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-6.js
index 4661515c4..22e410e7d 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-6.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-6.js
@@ -10,15 +10,11 @@ description: >
Array-like object
---*/
-Object.defineProperty(Object.prototype, "0", {
- get: function() {
- return false;
- },
- configurable: true
-});
+ Object.defineProperty(Object.prototype, "0", {
+ get: function () {
+ return false;
+ },
+ configurable: true
+ });
-assert.sameValue(Array.prototype.indexOf.call({
- 0: true,
- 1: 1,
- length: 2
-}, true), 0, 'Array.prototype.indexOf.call({ 0: true, 1: 1, length: 2 }, true)');
+assert.sameValue(Array.prototype.indexOf.call({ 0: true, 1: 1, length: 2 }, true), 0, 'Array.prototype.indexOf.call({ 0: true, 1: 1, length: 2 }, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-7.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-7.js
index 6344f1784..9382abf00 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-7.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-7.js
@@ -9,9 +9,9 @@ description: >
data property on an Array
---*/
-Array.prototype[0] = true;
-Array.prototype[1] = false;
-Array.prototype[2] = "true";
+ Array.prototype[0] = true;
+ Array.prototype[1] = false;
+ Array.prototype[2] = "true";
assert.sameValue([, , , ].indexOf(true), 0, '[, , , ].indexOf(true)');
assert.sameValue([, , , ].indexOf(false), 1, '[, , , ].indexOf(false)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-8.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-8.js
index 7ac1d9810..52e280f1c 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-8.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-8.js
@@ -9,16 +9,10 @@ description: >
data property on an Array-like object
---*/
-Object.prototype[0] = true;
-Object.prototype[1] = false;
-Object.prototype[2] = "true";
+ Object.prototype[0] = true;
+ Object.prototype[1] = false;
+ Object.prototype[2] = "true";
-assert.sameValue(Array.prototype.indexOf.call({
- length: 3
-}, true), 0, 'Array.prototype.indexOf.call({ length: 3 }, true)');
-assert.sameValue(Array.prototype.indexOf.call({
- length: 3
-}, false), 1, 'Array.prototype.indexOf.call({ length: 3 }, false)');
-assert.sameValue(Array.prototype.indexOf.call({
- length: 3
-}, "true"), 2, 'Array.prototype.indexOf.call({ length: 3 }, "true")');
+assert.sameValue(Array.prototype.indexOf.call({ length: 3 }, true), 0, 'Array.prototype.indexOf.call({ length: 3 }, true)');
+assert.sameValue(Array.prototype.indexOf.call({ length: 3 }, false), 1, 'Array.prototype.indexOf.call({ length: 3 }, false)');
+assert.sameValue(Array.prototype.indexOf.call({ length: 3 }, "true"), 2, 'Array.prototype.indexOf.call({ length: 3 }, "true")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-9.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-9.js
index 007bbcc02..ed295d201 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-9.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-9.js
@@ -9,27 +9,27 @@ description: >
property on an Array
---*/
-var arr = [, , , ];
-Object.defineProperty(arr, "0", {
- get: function() {
- return 0;
- },
- configurable: true
-});
+ var arr = [, , , ];
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ return 0;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "2", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
assert.sameValue(arr.indexOf(0), 0, 'arr.indexOf(0)');
assert.sameValue(arr.indexOf(1), 1, 'arr.indexOf(1)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-ii-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-ii-1.js
index 9402b5c03..8c2c6d709 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-ii-1.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-ii-1.js
@@ -14,6 +14,4 @@ assert.sameValue(["0"].indexOf(0), -1, '["0"].indexOf(0)');
assert.sameValue([false].indexOf(0), -1, '[false].indexOf(0)');
assert.sameValue([undefined].indexOf(0), -1, '[undefined].indexOf(0)');
assert.sameValue([null].indexOf(0), -1, '[null].indexOf(0)');
-assert.sameValue([
- []
-].indexOf(0), -1, '[[]].indexOf(0)');
+assert.sameValue([[]].indexOf(0), -1, '[[]].indexOf(0)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-ii-11.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-ii-11.js
index dcce4f017..8aad97866 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-ii-11.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-ii-11.js
@@ -9,8 +9,8 @@ description: >
are Object type, and they refer to the same object
---*/
-var obj1 = {};
-var obj2 = {};
-var obj3 = obj2;
+ var obj1 = {};
+ var obj2 = {};
+ var obj3 = obj2;
assert.sameValue([{}, obj1, obj2].indexOf(obj3), 2, '[{}, obj1, obj2].indexOf(obj3)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-iii-2.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-iii-2.js
index 94a30fd4a..a593c8ce4 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-iii-2.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-iii-2.js
@@ -9,26 +9,26 @@ description: >
element once search value is found
---*/
-var arr = [1, 2, , 1, 2];
-var elementThirdAccessed = false;
-var elementFifthAccessed = false;
+ var arr = [1, 2, , 1, 2];
+ var elementThirdAccessed = false;
+ var elementFifthAccessed = false;
-Object.defineProperty(arr, "2", {
- get: function() {
- elementThirdAccessed = true;
- return 2;
- },
- configurable: true
-});
-Object.defineProperty(arr, "4", {
- get: function() {
- elementFifthAccessed = true;
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ elementThirdAccessed = true;
+ return 2;
+ },
+ configurable: true
+ });
+ Object.defineProperty(arr, "4", {
+ get: function () {
+ elementFifthAccessed = true;
+ return 2;
+ },
+ configurable: true
+ });
-arr.indexOf(2);
+ arr.indexOf(2);
assert.sameValue(elementThirdAccessed, false, 'elementThirdAccessed');
assert.sameValue(elementFifthAccessed, false, 'elementFifthAccessed');