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

Unified Diff: runtime/vm/object.cc

Issue 19021002: Fix closure creation from function. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index fbd16c426c4ce3a2e0fd95e1af13bbdf34ea4e4f..fa90aa8565659e5872520bda6e9a1c7da82865dc 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -4517,6 +4517,11 @@ RawFunction* Function::NewClosureFunction(const String& name,
parent_owner,
token_pos));
result.set_parent_function(parent);
+ result.set_end_token_pos(parent.end_token_pos());
hausner 2013/07/10 21:55:49 As discussed offline, you need to make your change
Michael Lippautz (Google) 2013/07/10 22:33:10 Done.
+ AbstractType& parent_result = AbstractType::Handle(parent.result_type());
+ if (!parent_result.IsNull()) {
+ result.set_result_type(parent_result);
+ }
return result.raw();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698