Index: pkg/analyzer_experimental/lib/src/services/runtime/coverage/coverage_impl.dart |
diff --git a/pkg/analyzer_experimental/lib/src/services/runtime/coverage/coverage_impl.dart b/pkg/analyzer_experimental/lib/src/services/runtime/coverage/coverage_impl.dart |
index bc6b7cfeed75389c1abae7c0bc2fc85c3b72802f..f747ce66bbe6078585bf2d0cfc5990814ecace99 100644 |
--- a/pkg/analyzer_experimental/lib/src/services/runtime/coverage/coverage_impl.dart |
+++ b/pkg/analyzer_experimental/lib/src/services/runtime/coverage/coverage_impl.dart |
@@ -193,7 +193,7 @@ class CoverageServer extends RewriteServer { |
String rewritePathContent(String path) { |
if (path.endsWith('__coverage_lib.dart')) { |
String implPath = pathos.joinAll([ |
- pathos.dirname(new Options().script), |
+ pathos.dirname(Platform.script), |
'..', 'lib', 'src', 'services', 'runtime', 'coverage', |
'coverage_lib.dart']); |
var content = new File(implPath).readAsStringSync(); |