Add runtime type check for 'await' in DDC #50602
Labels
area-web-js
Issues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.
P2
A bug or feature request we're likely to work on
web-dev-compiler
This is a DDC part of #49396.
According to the spec,
await e
should check runtime type ofe
to be aFuture<flatten(S)>
whereS
is a static type ofe
before waiting fore
(otherwise it should wait forFuture.value(e)
). See #49396 for details.Kernel AST contains the type to check in
AwaitExpression.runtimeCheckType
.@sigmundch @nshahan
The text was updated successfully, but these errors were encountered: