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

Unified Diff: dart/frog/leg/scanner/scanner_task.dart

Issue 9866006: Add library mapping. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 9 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: dart/frog/leg/scanner/scanner_task.dart
diff --git a/dart/frog/leg/scanner/scanner_task.dart b/dart/frog/leg/scanner/scanner_task.dart
index d0a09b680ae26f03fb0ae604f2e911de9876a881..505ed81c8e6151f40e9f9deed4c1beeaab20b47b 100644
--- a/dart/frog/leg/scanner/scanner_task.dart
+++ b/dart/frog/leg/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

Powered by Google App Engine
This is Rietveld 408576698