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

Unified Diff: lib/compiler/implementation/apiimpl.dart

Issue 10967068: Stop importing js_helper.dart explicitly in the core library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merged to tip-of-tree. Created 8 years, 2 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
« no previous file with comments | « no previous file | lib/compiler/implementation/compiler.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/apiimpl.dart
diff --git a/lib/compiler/implementation/apiimpl.dart b/lib/compiler/implementation/apiimpl.dart
index e2598605a37b76814a286ad7138ad9928e8a8cd0..4062ba6c8b7239dc5f3297208e66ba67d83569ac 100644
--- a/lib/compiler/implementation/apiimpl.dart
+++ b/lib/compiler/implementation/apiimpl.dart
@@ -56,6 +56,7 @@ class Compiler extends leg.Compiler {
}
return "lib/$path";
}
+
String lookupPatchPath(String dartLibraryName) {
LibraryInfo info = LIBRARIES[dartLibraryName];
if (info === null) return null;
@@ -67,10 +68,8 @@ class Compiler extends leg.Compiler {
elements.LibraryElement scanBuiltinLibrary(String path) {
Uri uri = libraryRoot.resolve(lookupLibraryPath(path));
- Uri canonicalUri;
- if (path.startsWith("_")) {
- canonicalUri = uri;
- } else {
+ Uri canonicalUri = null;
+ if (!path.startsWith("_")) {
canonicalUri = new Uri.fromComponents(scheme: "dart", path: path);
}
elements.LibraryElement library =
« no previous file with comments | « no previous file | lib/compiler/implementation/compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698