[kernel] Don't emit InvalidExpression on invalid super in binaryexpression

Don't emit invalidexpression on invalid super call --- a correct call will be created later

BUG=
R=asgerf@google.com

Review URL: https://chromereviews.googleplex.com/524077013 .
This commit is contained in:
Jens Johansen 2016-10-14 13:49:51 +02:00
parent 0b72c538cc
commit 1048f55a29

View file

@ -1359,11 +1359,6 @@ class ExpressionBuilder
}
ast.Expression expression;
if (node.leftOperand is SuperExpression) {
var method = scope.resolveConcreteMethod(node.staticElement);
if (method == null) {
// TODO: Invoke super.noSuchMethod.
return new ast.InvalidExpression();
}
scope.addTransformerFlag(TransformerFlag.superCalls);
expression = new ast.SuperMethodInvocation(
new ast.Name(operator),