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