Index: dart/lib/compiler/implementation/scanner/scanner_task.dart |
diff --git a/dart/lib/compiler/implementation/scanner/scanner_task.dart b/dart/lib/compiler/implementation/scanner/scanner_task.dart |
index d0a09b680ae26f03fb0ae604f2e911de9876a881..505ed81c8e6151f40e9f9deed4c1beeaab20b47b 100644 |
--- a/dart/lib/compiler/implementation/scanner/scanner_task.dart |
+++ b/dart/lib/compiler/implementation/scanner/scanner_task.dart |
@@ -35,8 +35,7 @@ class ScannerTask extends CompilerTask { |
} |
LinkBuilder<ScriptTag> imports = new LinkBuilder<ScriptTag>(); |
- Uri cwd = new Uri(scheme: 'file', path: compiler.currentDirectory); |
- Uri base = cwd.resolve(library.script.name.toString()); |
+ Uri base = library.script.uri; |
for (ScriptTag tag in library.tags.reverse()) { |
StringNode argument = tag.argument; |
// TODO(lrn): Support interpolations here. We need access to the |