Jason Orendorff wrote:
OnThu, Apr 24, 2014 at 1:38 PM, Allen Wirfs-Brock
<[email protected]> wrote:
> [...]What we did take seriously was the concern about not running generator
finally blocks when a for-of initiated generator has an early exit. We don't need
to redefine @@iterator conventions to address that issue.
This reminds me --- "for-of initiated" here refers all the places
where the spec uses IteratorStep etc., right? Things like the spread
operator, destructuring assignment, and Array.from, for example?
That is, we're talking about a protocol change, not a narrow change to
for-of evaluation. Right?
No one is talking seriously about such a change.
The only proposal (let's table whether the name is 'return' or @@return)
is whether for-of constructs should have a finally maybe-call of the
iterator's return method, if present. Like SpiderMonkey's JS1.7-1.8
close method, based in part on Python 2.5 and up.
/be
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss