Chromium Code Reviews
DescriptionFix a bug in the async translation of let expressions.
If the body of a let expression contains an await, the translation could
hoist statements that contain references to the let-bound variable out
of its scope.
Instead split by cases on whether the body contains an await. If so, we
hoist let-bound variables to the statement level. If not, we produce a
let expression.
BUG=
R=asgerf@google.com
Committed: https://github.com/dart-lang/kernel/commit/a33c09fb981e5830cae1efc482b06cf19f89291b
Patch Set 1 #Patch Set 2 : Delete an incorrect comment. #Messages
Total messages: 5 (2 generated)
|