| Index: pkg/kernel/lib/transformations/continuation.dart
|
| diff --git a/pkg/kernel/lib/transformations/continuation.dart b/pkg/kernel/lib/transformations/continuation.dart
|
| index 112ea43b8274b3f3e182cc2e99039834e589fcb6..6ab03d974e1572037cc846ea56f3adc205a345b7 100644
|
| --- a/pkg/kernel/lib/transformations/continuation.dart
|
| +++ b/pkg/kernel/lib/transformations/continuation.dart
|
| @@ -147,6 +147,7 @@ class SyncStarFunctionRewriter extends ContinuationRewriterBase {
|
| ..addAll([closureFunction, returnStatement]));
|
| enclosingFunction.body.parent = enclosingFunction;
|
| enclosingFunction.asyncMarker = AsyncMarker.Sync;
|
| + enclosingFunction.debuggable = false;
|
| return enclosingFunction;
|
| }
|
|
|
| @@ -699,6 +700,7 @@ class AsyncStarFunctionRewriter extends AsyncRewriterBase {
|
| enclosingFunction.body = new Block(statements);
|
| enclosingFunction.body.parent = enclosingFunction;
|
| enclosingFunction.asyncMarker = AsyncMarker.Sync;
|
| + enclosingFunction.debuggable = false;
|
| return enclosingFunction;
|
| }
|
|
|
| @@ -852,10 +854,9 @@ class AsyncFunctionRewriter extends AsyncRewriterBase {
|
| var expr = node.expression == null
|
| ? new NullLiteral()
|
| : expressionRewriter.rewrite(node.expression, statements);
|
| - statements
|
| - .add(new ExpressionStatement(new VariableSet(returnVariable, expr)));
|
| - statements
|
| - .add(new BreakStatement(labeledBody)..fileOffset = node.fileOffset);
|
| + statements.add(new ExpressionStatement(
|
| + new VariableSet(returnVariable, expr)..fileOffset = node.fileOffset));
|
| + statements.add(new BreakStatement(labeledBody));
|
| return null;
|
| }
|
| }
|
|
|