Index: pkg/dart2js_incremental/lib/caching_compiler.dart |
diff --git a/pkg/dart2js_incremental/lib/caching_compiler.dart b/pkg/dart2js_incremental/lib/caching_compiler.dart |
index f7f8f1004f69989bb05cf5484906e6d2f14a1834..7401ba452a8ce8503bdefbc75d12d627ed6f3c87 100644 |
--- a/pkg/dart2js_incremental/lib/caching_compiler.dart |
+++ b/pkg/dart2js_incremental/lib/caching_compiler.dart |
@@ -87,11 +87,7 @@ Future<CompilerImpl> reuseCompiler( |
}); |
}); |
} else { |
- for (final task in compiler.tasks) { |
- if (task.watch != null) { |
- task.watch.reset(); |
- } |
- } |
+ compiler.tasks.forEach((t) => t.clearMeasurements()); |
compiler |
..userOutputProvider = outputProvider |
..provider = inputProvider |