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

Unified Diff: frog/leg/frog_leg.dart

Issue 9351020: Implement try/catch without finally, and without type checks. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
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 | « frog/leg/compiler.dart ('k') | frog/leg/resolver.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/leg/frog_leg.dart
===================================================================
--- frog/leg/frog_leg.dart (revision 4024)
+++ frog/leg/frog_leg.dart (working copy)
@@ -107,8 +107,8 @@
print(script.file.getLocationMessage("cancel leg: $reason",
begin, end, true));
} else if (element !== null) {
- currentElement = element;
- cancel(reason: reason, token: element.position());
+ withCurrentElement(element,
+ () => cancel(reason: reason, token: element.position()));
}
if (throwOnError) {
throw new AbortLeg(reason);
« no previous file with comments | « frog/leg/compiler.dart ('k') | frog/leg/resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698