Index: dart/site/try/poi/poi.dart |
diff --git a/dart/site/try/poi/poi.dart b/dart/site/try/poi/poi.dart |
index 5a8900e9a56148bb0adf0fa9188b8f164b48ae21..b8f530cb057fa26ddbf250f0f657305ce545942c 100644 |
--- a/dart/site/try/poi/poi.dart |
+++ b/dart/site/try/poi/poi.dart |
@@ -538,12 +538,16 @@ class ScriptOnlyFilter implements QueueFilter { |
bool checkNoEnqueuedInvokedInstanceMethods(Enqueuer enqueuer) => true; |
void processWorkItem(void f(WorkItem work), WorkItem work) { |
- if (work.element.library.canonicalUri == script) { |
- f(work); |
- printWallClock('Processed ${work.element}.'); |
- } else { |
- printWallClock('Skipped ${work.element}.'); |
+ if (work.element.library.canonicalUri != script) { |
+ // TODO(ahe): Rather nasty hack to work around another nasty hack in |
+ // backend.dart. Find better solution. |
+ if (work.element.name != 'closureFromTearOff') { |
+ printWallClock('Skipped ${work.element}.'); |
+ return; |
+ } |
} |
+ f(work); |
+ printWallClock('Processed ${work.element}.'); |
} |
} |