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