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

Unified Diff: sdk/lib/_internal/pub_generated/bin/async_compile.dart

Issue 549623003: Make compiler imports relative in async-compiled code. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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
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) {

Powered by Google App Engine
This is Rietveld 408576698