DescriptionImplement the function.sent proposal.
The body of a generator function can now refer to the generator's input value via a new
"function.sent" expression. We extend the proposal at
https://github.com/allenwb/ESideas/blob/master/Generator%20metaproperty.md
in the obvious way to also apply to GeneratorResumeAbrupt.
This will enable us to desugar yield*.
The new syntax is behind a new --harmony-function-sent flag.
BUG=v8:4700
LOG=n
Committed: https://crrev.com/e2466bb5ff5288610383cffb5ab698bed1da75c8
Cr-Commit-Position: refs/heads/master@{#33574}
Patch Set 1 #
Total comments: 9
Patch Set 2 : Address some comments. #Patch Set 3 : Other archs. #Patch Set 4 : Improve a test. #Patch Set 5 : Undo slight change in yield* behavior (it's not in proposal). #Patch Set 6 : Ignore last patch. Rebase now. #Patch Set 7 : (Undo slight change in yield* ...) #Patch Set 8 : Add TODO #
Messages
Total messages: 33 (14 generated)
|