Why do you think they use generators?

It is true that you can pass an iterable, but your polyfill can just ignore
that.
On Jul 11, 2013 6:31 PM, "Andrea Giammarchi" <[email protected]>
wrote:

> I've noticed by accident Maps and Sets (simple?) now uses generators so
> that no polyfill will ever work anymore and Sets are pointless since
> there's no way to retrieve back values in any shim.
>
> I'll drop my es6-collections polyfill and take care of a pointless WeakMap
> shim only at this poit ... wondering what's Mark M. take on this since he
> was taking care of other polyfills for closure too.
>
> http://wiki.ecmascript.org/doku.php?id=harmony:simple_maps_and_sets
>
> Best Regards, this was a very bad move, IMO.
>
> _______________________________________________
> es-discuss mailing list
> [email protected]
> https://mail.mozilla.org/listinfo/es-discuss
>
>
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to