| Index: runtime/vm/flow_graph_builder.cc
|
| diff --git a/runtime/vm/flow_graph_builder.cc b/runtime/vm/flow_graph_builder.cc
|
| index 8214f6950606214653259bbf168e7cb89375d6cc..371ec0eb70658f932a35ce667691ce6841942e49 100644
|
| --- a/runtime/vm/flow_graph_builder.cc
|
| +++ b/runtime/vm/flow_graph_builder.cc
|
| @@ -2331,10 +2331,11 @@ void EffectGraphVisitor::VisitAwaitMarkerNode(AwaitMarkerNode* node) {
|
| // We need to create a new await state which involves:
|
| // * Increase the jump counter. Sanity check against the list of targets.
|
| // * Save the current context for resuming.
|
| - ASSERT(node->scope() != NULL);
|
| - LocalVariable* jump_var = node->scope()->LookupVariable(
|
| + ASSERT(node->async_scope() != NULL);
|
| + ASSERT(node->await_scope() != NULL);
|
| + LocalVariable* jump_var = node->async_scope()->LookupVariable(
|
| Symbols::AwaitJumpVar(), false);
|
| - LocalVariable* ctx_var = node->scope()->LookupVariable(
|
| + LocalVariable* ctx_var = node->async_scope()->LookupVariable(
|
| Symbols::AwaitContextVar(), false);
|
| ASSERT((jump_var != NULL) && jump_var->is_captured());
|
| ASSERT((ctx_var != NULL) && ctx_var->is_captured());
|
|
|