Caffeinating still, obvious bugfix below:

Brendan Eich wrote:
```js
Object.defineProperty(%CollectionPrototype%, 'map', {
    value: function (fun) {
        let result = new this.constructor();
        for (let [key, val] of this) {
result.set(key, val);

```js
            result.set(key, fun(val, key));
```

I call the mapfun in these examples with (val, key) -- could use the e-i-c convention from the Array extras but I was in a hurry (wherefore this bug).

/be
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to