Chromium Code Reviews| Index: dart/frog/leg/frog_leg.dart |
| diff --git a/dart/frog/leg/frog_leg.dart b/dart/frog/leg/frog_leg.dart |
| index 73a23d5221d7d1984891efe21028a1c26c78629e..874293ba051f4fbda4f9cd93c1440e052408b26a 100644 |
| --- a/dart/frog/leg/frog_leg.dart |
| +++ b/dart/frog/leg/frog_leg.dart |
| @@ -108,6 +108,7 @@ class WorldCompiler extends Compiler { |
| print(script.file.getLocationMessage("cancel leg: $reason", |
| begin, end, true)); |
| } else if (element !== null) { |
| + if (element.position() === null) element = element.enclosingElement; |
|
kasperl
2012/02/17 06:03:31
Maybe add a comment on when this happens? What kin
ahe
2012/02/17 07:40:47
I'm not sure this API is where I want it. For exam
ngeoffray
2012/02/17 10:03:50
The thing is, the backend should not cancel on ele
ahe
2012/02/17 16:26:46
Nicolas and I went back to the drawing board, and
|
| withCurrentElement(element, |
| () => cancel(reason: reason, token: element.position())); |
| } |