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

Unified Diff: dart/frog/gen.dart

Issue 9325029: Fix for issue 1480: analyze a method even if it does not have a body, and do not try to evaluate ... (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 8 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
« no previous file with comments | « dart/frog/analyze.dart ('k') | dart/frog/method_data.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/frog/gen.dart
===================================================================
--- dart/frog/gen.dart (revision 3935)
+++ dart/frog/gen.dart (working copy)
@@ -999,6 +999,10 @@
// Ensure default value for param has been generated
p.genValue(method, this);
currentArg = p.value;
+ if (currentArg == null) {
+ // Not enough arguments, we'll get an error later.
+ return;
+ }
}
}
« no previous file with comments | « dart/frog/analyze.dart ('k') | dart/frog/method_data.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698