| Index: pkg/compiler/lib/src/ssa/builder.dart
|
| diff --git a/pkg/compiler/lib/src/ssa/builder.dart b/pkg/compiler/lib/src/ssa/builder.dart
|
| index 2e897ecbdc1090b25c2523fcd878de9a0b18ada5..4fc7d189812dc42503efd3707e4a45c04b38cc15 100644
|
| --- a/pkg/compiler/lib/src/ssa/builder.dart
|
| +++ b/pkg/compiler/lib/src/ssa/builder.dart
|
| @@ -1382,8 +1382,8 @@ class SsaAstGraphBuilder extends ast.Visitor
|
| // pass the box to the constructor.
|
| // The box must be passed before any type variable.
|
| CapturedScope scopeData = closureDataLookup.getCapturedScope(constructor);
|
| - if (scopeData.requiresContextBox) {
|
| - bodyCallInputs.add(localsHandler.readLocal(scopeData.context));
|
| + if (scopeData.hasBox) {
|
| + bodyCallInputs.add(localsHandler.readLocal(scopeData.box));
|
| }
|
|
|
| // Type variables arguments must come after the box (if there is one).
|
|
|