summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/map/15.4.4.19-3-21.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/map/15.4.4.19-3-21.js')
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-3-21.js40
1 files changed, 20 insertions, 20 deletions
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-21.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-21.js
index d1df6df8e..fb22c7355 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-21.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-21.js
@@ -10,29 +10,29 @@ description: >
returns a string
---*/
- function callbackfn(val, idx, obj) {
- return val < 10;
- }
+function callbackfn(val, idx, obj) {
+ return val < 10;
+}
- var firstStepOccured = false;
- var secondStepOccured = false;
- var obj = {
- 0: 11,
- 1: 9,
+var firstStepOccured = false;
+var secondStepOccured = false;
+var obj = {
+ 0: 11,
+ 1: 9,
- length: {
- valueOf: function () {
- firstStepOccured = true;
- return {};
- },
- toString: function () {
- secondStepOccured = true;
- return '2';
- }
- }
- };
+ length: {
+ valueOf: function() {
+ firstStepOccured = true;
+ return {};
+ },
+ toString: function() {
+ secondStepOccured = true;
+ return '2';
+ }
+ }
+};
- var newArr = Array.prototype.map.call(obj, callbackfn);
+var newArr = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
assert(firstStepOccured, 'firstStepOccured !== true');