Description[interpreter] Don't assume generator functions do an initial yield.
Async functions are implemented via special generator functions; special in the
sense that they generally do not immediately yield. However, our generators
implementation still assumed that every generator function initially yields
(concretely: before doing the state dispatch in a loop header). This CL fixes
that.
R=littledan@chromium.org, rmcilroy@chromium.org
BUG=chromium:638019
Committed: https://crrev.com/7fe4d930c9772dfc5f8e506920ad435863ee3b1d
Cr-Commit-Position: refs/heads/master@{#38684}
Patch Set 1 #
Total comments: 2
Messages
Total messages: 13 (6 generated)
|