DescriptionSupport for AwaitExpression in unlinked expressions.
This code was failing when analyzing dev_compiler with the new driver.
var instanceVarArrowExpression = (f) async => await f;
The reason was that we:
1. Don't understand AwaitExpression in AbstractConstExprSerializer.
2. So, we throw StateError.
3. So, AbstractConstExprSerializer.serialize() marks isValidConst.
4. But we don't check 'isValidConst' in linker.
5. The list of operations is empty, so we don't have anything in stack.
6. So, we throw an exception in linker.
R=paulberry@google.com
BUG=
Committed: https://github.com/dart-lang/sdk/commit/38635ec91e933a21b5438ee0f2eed7b43991d49f
Patch Set 1 #
Total comments: 4
Patch Set 2 : Use DartType.flattenFutures() #
Messages
Total messages: 6 (1 generated)
|