April 10 2014 Meeting Notes
brendan at mozilla.org
Thu Apr 24 12:16:04 PDT 2014
Jason Orendorff wrote:
> OnThu, Apr 24, 2014 at 1:38 PM, Allen Wirfs-Brock
> <allen at wirfs-brock.com> 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.
More information about the es-discuss