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

Unified Diff: dart/frog/leg/frog_leg.dart

Issue 9424027: Implement Date. (Closed) Base URL: https://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 | « no previous file | dart/frog/leg/lib/coreimpl.dart » ('j') | dart/frog/leg/lib/mockimpl.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/frog/leg/frog_leg.dart
diff --git a/dart/frog/leg/frog_leg.dart b/dart/frog/leg/frog_leg.dart
index 646e95bee362f4ec64b53b7ac466014270fbdaa7..b1228b68ec4a561cb597f6f529a15e3a0954679d 100644
--- a/dart/frog/leg/frog_leg.dart
+++ b/dart/frog/leg/frog_leg.dart
@@ -117,8 +117,13 @@ class WorldCompiler extends Compiler {
element = element.enclosingElement;
// TODO(ahe): I plan to overhaul this infrastructure anyways.
}
- withCurrentElement(element,
- () => cancel(reason: reason, token: element.position()));
+ if (element !== null) {
+ withCurrentElement(element,
+ () => cancel(reason: reason, token: element.position()));
+ }
+ } else if (currentElement !== null) {
+ cancel(reason, element: currentElement);
+ return;
kasperl 2012/02/21 07:23:30 We usually do not return after a cancel.
}
if (throwOnError) {
throw new AbortLeg(reason);
« no previous file with comments | « no previous file | dart/frog/leg/lib/coreimpl.dart » ('j') | dart/frog/leg/lib/mockimpl.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698