summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-7.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-7.js')
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-7.js28
1 files changed, 15 insertions, 13 deletions
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 58e38614c..317816ab6 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,19 +9,21 @@ 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)');