Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(470)

Issue 2480743002: Fix a bug in the async translation of let expressions. (Closed)

Created:
4 years, 1 month ago by Kevin Millikin (Google)
Modified:
4 years, 1 month ago
Reviewers:
asgerf
CC:
dart-kernel+reviews_google.com
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fix 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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -4 lines) Patch
M lib/transformations/async.dart View 1 1 chunk +40 lines, -4 lines 0 comments Download

Messages

Total messages: 5 (2 generated)
Kevin Millikin (Google)
I will add a test case using the VM when I roll this into the ...
4 years, 1 month ago (2016-11-04 13:10:12 UTC) #2
asgerf
LGTM
4 years, 1 month ago (2016-11-04 13:15:03 UTC) #3
Kevin Millikin (Google)
4 years, 1 month ago (2016-11-04 13:20:18 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
a33c09fb981e5830cae1efc482b06cf19f89291b (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698