DescriptionFix bug where generators got closed prematurely.
In a generator function, the parser rewrites a return statement into a "final"
yield. A final yield used to close the generator, which was incorrect because
the return may occur inside a try-finally clause and so the generator may not
yet terminate.
BUG=
Committed: https://crrev.com/2a0e4225dddc9c39eb2d0cd36d2b7249120c78ab
Cr-Commit-Position: refs/heads/master@{#33537}
Patch Set 1 #
Total comments: 3
Patch Set 2 : Address comments. #
Messages
Total messages: 23 (11 generated)
|