summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/map/15.4.4.19-8-b-11.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/map/15.4.4.19-8-b-11.js')
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-b-11.js26
1 files changed, 13 insertions, 13 deletions
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-11.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-11.js
index d194b572b..58fccded0 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-11.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-11.js
@@ -9,21 +9,21 @@ description: >
prototype index property not to be visited on an Array
---*/
-function callbackfn(val, idx, obj) {
- return idx === 1 && typeof val === "undefined";
-}
-var arr = [0, , 2];
+ function callbackfn(val, idx, obj) {
+ return idx === 1 && typeof val === "undefined";
+ }
+ var arr = [0, , 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- delete Array.prototype[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete Array.prototype[1];
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype[1] = 1;
-var testResult = arr.map(callbackfn);
+ Array.prototype[1] = 1;
+ var testResult = arr.map(callbackfn);
assert.sameValue(testResult.length, 3, 'testResult.length');
assert.sameValue(typeof testResult[1], "undefined", 'typeof testResult[1]');