| Index: lib/compiler/implementation/apiimpl.dart
|
| diff --git a/lib/compiler/implementation/apiimpl.dart b/lib/compiler/implementation/apiimpl.dart
|
| index 73a2ab718ac82568a2e2cbad373af6624bf0fd2b..5e4ae29c1540832fbd5dead258c7f14fce268ec0 100644
|
| --- a/lib/compiler/implementation/apiimpl.dart
|
| +++ b/lib/compiler/implementation/apiimpl.dart
|
| @@ -34,7 +34,14 @@ class Compiler extends leg.Compiler {
|
|
|
| elements.LibraryElement scanBuiltinLibrary(String path) {
|
| Uri uri = libraryRoot.resolve(DART2JS_LIBRARY_MAP[path].libraryPath);
|
| - elements.LibraryElement library = scanner.loadLibrary(uri, null);
|
| + Uri canonicalUri;
|
| + if (path.startsWith("_")) {
|
| + canonicalUri = uri;
|
| + } else {
|
| + canonicalUri = new Uri.fromComponents(scheme: "dart", path: path);
|
| + }
|
| + elements.LibraryElement library =
|
| + scanner.loadLibrary(uri, null, canonicalUri);
|
| return library;
|
| }
|
|
|
|
|