Certainly we could make `.return` always return `undefined` with no loss of
functionality, since the intended use case is simply to trigger `finally`
clauses and close the generator.
--scott
___
es-discuss mailing list
es-discuss@mozilla.org
https://m
At
http://wiki.ecmascript.org/doku.php?id=harmony:specification_drafts#april_27_2014_draft_rev_24
Changes include:
• Several important bug fixes to Function Declaration Instantiation
• Updated RegExp so that subclasses that over-ride exec semantics don’t
have to also over-ride
Mark S. Miller wrote:
BTW, return() should be idempotent. Is it?
Since .return takes an argument whose value is observable, I think not.
Hmmm. This is interestingly similar to multiple calls to resolve.
Yes, and note that Python's generator.close (no return value parameter,
recall it
3 matches
Mail list logo