Index: sdk/lib/_internal/compiler/samples/leap/leap_leg.dart |
diff --git a/sdk/lib/_internal/compiler/samples/leap/leap_leg.dart b/sdk/lib/_internal/compiler/samples/leap/leap_leg.dart |
index c04f674e6e373f77fde2d7f8bbe544b675f9ef9f..3969f901960a3cf82f8f624a76a50fc221dd2209 100644 |
--- a/sdk/lib/_internal/compiler/samples/leap/leap_leg.dart |
+++ b/sdk/lib/_internal/compiler/samples/leap/leap_leg.dart |
@@ -222,7 +222,7 @@ class LeapCompiler extends Compiler { |
String get legDirectory => libDir; |
LibraryElement scanBuiltinLibrary(String path) { |
- Uri base = new Uri.fromString(html.window.location.toString()); |
+ Uri base = Uri.parse(html.window.location.toString()); |
Uri libraryRoot = base.resolve(libDir); |
Uri resolved = libraryRoot.resolve(DART2JS_LIBRARY_MAP[path]); |
LibraryElement library = scanner.loadLibrary(resolved, null); |