Chromium Code Reviews
DescriptionFix "continue to a label" in dart2js async code.
Actually there were two independent problems
1: continue would jump to the starting point of the label, instead of
the continue-point of the labelled loop.
2: A for-initializer with no awaits in the for would still get its
variables hoisted, so
label: for(var i = 1; i < 10; i++) {continue label};
would transform to:
label: {
i = 1
for(; i < 10; i++) {continue label;}
}
And that fails.
BUG=
R=floitsch@google.com
Committed: https://code.google.com/p/dart/source/detail?r=44499
Patch Set 1 #Patch Set 2 : Add tests #
Total comments: 2
Patch Set 3 : Address review. Also update unittest #
Messages
Total messages: 5 (1 generated)
|
|||||||||||||||||||||||||||||||||||||