callback-not-called-on-empty.js |
|
137 |
callbackfn-arguments-with-thisarg |
|
1035 |
callbackfn-arguments-with-thisarg.js |
---
esid: sec-%Tuple%.prototype.map
description: >
callbackfn arguments
info: |
8.2.3.20 %Tuple%.prototype.map ( callbackfn [ , thisArg ] )
...
7. Repeat, while k < len,
a. Let kValue be list[k].
b. Let mappedValue be ? Call(callbackfn, thisArg, « kValue, k, T »).
...
features: [Tuple]
--- |
1108 |
callbackfn-arguments-without-thisarg.js |
---
esid: sec-%Tuple%.prototype.map
description: >
callbackfn arguments
info: |
8.2.3.20 %Tuple%.prototype.map ( callbackfn [ , thisArg ] )
...
7. Repeat, while k < len,
a. Let kValue be list[k].
b. Let mappedValue be ? Call(callbackfn, thisArg, « kValue, k, T »).
...
features: [Tuple]
--- |
1035 |
callbackfn-is-not-callable.js |
---
esid: sec-%Tuple%.prototype.map
description: >
callbackfn arguments
info: |
8.2.3.20 %Tuple%.prototype.map ( callbackfn [ , thisArg ] )
...
4. If IsCallable(callbackfn) is false, throw a TypeError exception.
...
features: [Tuple]
--- |
1367 |
callbackfn-returns-abrupt.js |
|
281 |
indexed-setters.js |
|
324 |
invoked-as-func.js |
|
140 |
invoked-as-method.js |
|
280 |
length-internal.js |
|
463 |
length.js |
|
821 |
map.js |
8.2.3.20 Tuple.prototype.map ( callbackfn [ , thisArg ] )
NOTE
callbackfn should be a function that accepts three arguments. map calls callbackfn once for each element in the Tuple, in ascending order, and constructs a new tuple from the results.
If a thisArg parameter is provided, it will be used as the this value for each invocation of callbackfn. If it is not provided, undefined is used instead.
callbackfn is called with three arguments: the value of the element, the index of the element, and the Tuple being traversed.
When the map method is called with one or two arguments, the following steps are taken:
1. Let T be ? thisTupleValue(this value).
2. Let list be T.[[Sequence]].
3. Let len be the number of elements in list.
4. If IsCallable(callbackfn) is false, throw a TypeError exception.
5. Let newList be a new empty List.
6. Let k be 0.
7. Repeat, while k < len,
a. Let kValue be list[k].
b. Let mappedValue be ? Call(callbackfn, thisArg, « kValue, k, T »).
c. If Type(mappedValue) is Object, throw a TypeError exception.
d. Append mappedValue to the end of list newList.
e. Set k to k + 1.
8. Return a new Tuple value whose [[Sequence]] is newList.
|
3256 |
this-is-not-tuple.js |
---
esid: sec-%typedarray%.prototype.map
description: Throws a TypeError exception when `this` is not a Tuple
info: |
features: [Tuple]
--- |
869 |