Index: sdk/lib/_internal/pub_generated/bin/async_compile.dart |
diff --git a/sdk/lib/_internal/pub_generated/bin/async_compile.dart b/sdk/lib/_internal/pub_generated/bin/async_compile.dart |
index dd653aa6fdcaad6bb723d4fa688b50ca88430cf6..ec7886edf93d8e2b9ba2bd1258fb16f95235f169 100644 |
--- a/sdk/lib/_internal/pub_generated/bin/async_compile.dart |
+++ b/sdk/lib/_internal/pub_generated/bin/async_compile.dart |
@@ -103,7 +103,8 @@ String _translateAsyncAwait(String sourcePath, String source) { |
} |
String _fixDart2jsImports(String sourcePath, String source, String destPath) { |
var compilerDir = p.url.join(sourceUrl, "../compiler"); |
- var relative = p.url.relative(compilerDir, from: p.dirname(destPath)); |
+ var relative = |
+ p.url.relative(compilerDir, from: p.dirname(p.toUri(destPath).toString())); |
nweiz
2014/09/09 19:21:31
Same here. Also long line.
|
return source.replaceAll(_compilerPattern, "import '$relative"); |
} |
void _generateSnapshot(String buildDir) { |