summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-5.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-5.js')
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-5.js18
1 files changed, 11 insertions, 7 deletions
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-5.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-5.js
index 4bb7b42ff..44eaea59e 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-5.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-5.js
@@ -9,15 +9,19 @@ description: >
changed or deleted
---*/
- function callbackfn(val, idx, obj) {
- return true;
- }
+function callbackfn(val, idx, obj) {
+ return true;
+}
- var obj = { 0: 11, 1: 9, length: 2 };
- var newArr = Array.prototype.map.call(obj, callbackfn);
+var obj = {
+ 0: 11,
+ 1: 9,
+ length: 2
+};
+var newArr = Array.prototype.map.call(obj, callbackfn);
- var tempVal = newArr[1];
- delete newArr[1];
+var tempVal = newArr[1];
+delete newArr[1];
assert.notSameValue(tempVal, undefined, 'tempVal');
assert.sameValue(newArr[1], undefined, 'newArr[1]');