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

Unified Diff: runtime/vm/parser.cc

Issue 1682173008: ‘Yield* e' should not access e.current eagerly (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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
Index: runtime/vm/parser.cc
diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc
index bfd9a170e4bcc1af79c38a21a8d4ab0a9a7b6a73..048c1845fe65f1c8c6582179add48a0e3803fe5d 100644
--- a/runtime/vm/parser.cc
+++ b/runtime/vm/parser.cc
@@ -9795,7 +9795,8 @@ AstNode* Parser::ParseYieldStatement() {
AstNode* store_current =
new(Z) InstanceSetterNode(TokenPosition::kNoSource,
iterator,
- String::ZoneHandle(Symbols::Current().raw()),
+ Library::PrivateCoreLibName(
+ Symbols::_current()),
expr);
yield->AddNode(store_current);
if (is_yield_each) {

Powered by Google App Engine
This is Rietveld 408576698