Index: lib/compiler/implementation/util/uri_extras.dart |
diff --git a/lib/compiler/implementation/util/uri_extras.dart b/lib/compiler/implementation/util/uri_extras.dart |
index d5e9a8fdbdd2e7f79962fcc84ae99dd0f6a2e350..9a57d983933c571ded1c9f59620a8adbf6a5f065 100644 |
--- a/lib/compiler/implementation/util/uri_extras.dart |
+++ b/lib/compiler/implementation/util/uri_extras.dart |
@@ -4,6 +4,7 @@ |
#library('uri_extras'); |
+#import('dart:math'); |
#import('dart:uri'); |
String relativize(Uri base, Uri uri) { |
@@ -19,7 +20,7 @@ String relativize(Uri base, Uri uri) { |
List<String> uriParts = uri.path.split('/'); |
List<String> baseParts = base.path.split('/'); |
int common = 0; |
- int length = Math.min(uriParts.length, baseParts.length); |
+ int length = min(uriParts.length, baseParts.length); |
while (common < length && uriParts[common] == baseParts[common]) { |
common++; |
} |