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