| Index: pkg/compiler/lib/src/compile_time_constants.dart
|
| diff --git a/pkg/compiler/lib/src/compile_time_constants.dart b/pkg/compiler/lib/src/compile_time_constants.dart
|
| index 1cc17a99d6c8ff7310c8e0f08bd0d9fcb625f78c..34d9adb675869bcd773bf59db67ca22f536d33cb 100644
|
| --- a/pkg/compiler/lib/src/compile_time_constants.dart
|
| +++ b/pkg/compiler/lib/src/compile_time_constants.dart
|
| @@ -1151,10 +1151,16 @@ class ConstructorEvaluator extends CompileTimeConstantEvaluator {
|
| // A super initializer or constructor redirection.
|
| Send call = link.head;
|
| FunctionElement target = elements[call];
|
| - List<AstConstant> compiledArguments = evaluateArgumentsToConstructor(
|
| - call, elements.getSelector(call).callStructure, call.arguments,
|
| - target, compileArgument: evaluateConstant);
|
| - evaluateSuperOrRedirectSend(compiledArguments, target);
|
| + if (!target.isMalformed) {
|
| + List<AstConstant> compiledArguments =
|
| + evaluateArgumentsToConstructor(
|
| + call,
|
| + elements.getSelector(call).callStructure,
|
| + call.arguments,
|
| + target,
|
| + compileArgument: evaluateConstant);
|
| + evaluateSuperOrRedirectSend(compiledArguments, target);
|
| + }
|
| foundSuperOrRedirect = true;
|
| } else {
|
| // A field initializer.
|
|
|