Chromium Code Reviews

Unified Diff: lib/src/dart.dart

Issue 1231893004: Always pass absolute paths to dart2js. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « lib/src/barback/dart2js_transformer.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/dart.dart
diff --git a/lib/src/dart.dart b/lib/src/dart.dart
index 853fd9dce7654b8a99b5d5ebd46c7cc52c1ec8bd..b1985684e3fa461dafc4634c174f54c86dd83ec2 100644
--- a/lib/src/dart.dart
+++ b/lib/src/dart.dart
@@ -101,9 +101,9 @@ Future compile(String entrypoint, CompilerProvider provider, {
}
return compiler.compile(
- path.toUri(entrypoint),
+ path.toUri(path.absolute(entrypoint)),
provider.libraryRoot,
- path.toUri(appendSlash(packageRoot)),
+ path.toUri(appendSlash(path.absolute(packageRoot))),
provider.provideInput,
provider.handleDiagnostic,
options,
« no previous file with comments | « lib/src/barback/dart2js_transformer.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine