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

Unified Diff: site/try/poi/poi.dart

Issue 2016013002: Preserve the original semantics in the poi tests. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: site/try/poi/poi.dart
diff --git a/site/try/poi/poi.dart b/site/try/poi/poi.dart
index f40705a9f77a8f2f1e259c90d9cbb0ef5c602f77..cb04b8dcfca9b3495fae4f1209fc16b2ddfc31f2 100644
--- a/site/try/poi/poi.dart
+++ b/site/try/poi/poi.dart
@@ -455,7 +455,7 @@ Future<Element> runPoiInternal(
int position) {
bool isFullCompile = cachedCompiler != newCompiler;
cachedCompiler = newCompiler;
- if (poiTask == null) {
+ if (poiTask == null || poiTask.compiler != cachedCompiler) {
poiTask = new PoiTask(cachedCompiler);
cachedCompiler.tasks.add(poiTask);
}
@@ -565,7 +565,8 @@ class ScriptOnlyFilter implements QueueFilter {
}
class PoiTask extends CompilerTask {
- PoiTask(Compiler compiler) : super(compiler.measurer);
+ final Compiler compiler;
+ PoiTask(Compiler compiler) : compiler = compiler, super(compiler.measurer);
String get name => 'POI';
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698