Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(378)

Unified Diff: runtime/vm/parser.cc

Issue 1160663004: Fix restoring of async try context in catch clause (issue 23498). (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tests/language/regress_23498_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/parser.cc
diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc
index 52ac207f5835e52ca3e736446d04a1ec9a13c0b0..0b82d605eee84eba098f22cb639e916b64930003 100644
--- a/runtime/vm/parser.cc
+++ b/runtime/vm/parser.cc
@@ -9270,7 +9270,7 @@ SequenceNode* Parser::ParseCatchClauses(
LocalVariable* async_saved_try_ctx =
LookupAsyncSavedTryContextVar(scope->parent(),
try_block->try_index());
- current_block_->statements->Add(
+ async_code->Add(
new (Z) StoreLocalNode(
Scanner::kNoSourcePos,
saved_try_ctx,
« no previous file with comments | « no previous file | tests/language/regress_23498_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698