Index: pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart |
diff --git a/pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart b/pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart |
index 28cc94a842012e74e85d78b04be75b6c7f75f1d0..18eeb525aae5d4bfee63c7ff83332f4c761430db 100644 |
--- a/pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart |
+++ b/pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart |
@@ -3859,7 +3859,7 @@ class TryBoxedVariables extends ast.Visitor { |
if (Elements.isLocal(element)) { |
LocalElement local = element; |
if (insideInitializer && |
- (local.isParameter || local.isInitializingFormal) && |
+ local.isParameter && |
local.enclosingElement == currentFunction) { |
assert(local.enclosingElement.isConstructor); |
// Initializers in an initializer-list can communicate via parameters. |
@@ -3871,9 +3871,7 @@ class TryBoxedVariables extends ast.Visitor { |
// outlive the activation of the function). |
markAsCaptured(local); |
} else if (inTryStatement) { |
- assert(local.isParameter || |
- local.isVariable || |
- local.isInitializingFormal); |
+ assert(local.isParameter || local.isVariable); |
// Search for the position of the try block containing the variable |
// declaration, or -1 if it is declared outside the outermost try. |
int i = tryNestingStack.length - 1; |