summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/map/15.4.4.19-9-11.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/map/15.4.4.19-9-11.js')
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-9-11.js32
1 files changed, 16 insertions, 16 deletions
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-9-11.js b/test/built-ins/Array/prototype/map/15.4.4.19-9-11.js
index aa0fd8891..f8c6a295f 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-9-11.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-9-11.js
@@ -10,26 +10,26 @@ description: >
(toString))
---*/
-function Foo() {}
-Foo.prototype = [1, 2, 3];
+ function Foo() { }
+ Foo.prototype = [1, 2, 3];
-var f = new Foo();
+ var f = new Foo();
-var o = {
- toString: function() {
- return '0';
- }
-};
-f.length = o;
+ var o = {
+ toString: function () {
+ return '0';
+ }
+ };
+ f.length = o;
-// 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.
+ // 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.
-function cb() {}
-var a = Array.prototype.map.call(f, cb);
+ function cb() { }
+ var a = Array.prototype.map.call(f, cb);
assert(Array.isArray(a), 'Array.isArray(a) !== true');
assert.sameValue(a.length, 0, 'a.length');