Chromium Code Reviews| Index: sdk/lib/_internal/compiler/implementation/apiimpl.dart |
| diff --git a/sdk/lib/_internal/compiler/implementation/apiimpl.dart b/sdk/lib/_internal/compiler/implementation/apiimpl.dart |
| index 119e891593df03bc8f2b3646a25551b21ef802c8..a76d1d52a60f141959b6ea7d048373bc392b846d 100644 |
| --- a/sdk/lib/_internal/compiler/implementation/apiimpl.dart |
| +++ b/sdk/lib/_internal/compiler/implementation/apiimpl.dart |
| @@ -34,7 +34,15 @@ class Compiler extends leg.Compiler { |
| disallowUnsafeEval: hasOption(options, '--disallow-unsafe-eval'), |
| strips: getStrips(options), |
| enableConcreteTypeInference: |
| - hasOption(options, '--enable-concrete-type-inference')); |
| + hasOption(options, '--enable-concrete-type-inference')) { |
| + if (!libraryRoot.path.endsWith("/")) { |
| + throw new ArgumentError("Library URI must end with a /"); |
|
ahe
2012/11/05 15:58:42
Library URI -> libraryRoot
Johnni Winther
2012/11/05 16:23:29
Done.
|
| + } |
| + if (packageRoot != null && !packageRoot.path.endsWith("/")) { |
| + throw new ArgumentError("Package URI must end with a /"); |
|
ahe
2012/11/05 15:58:42
Package URI -> packageRoot
Johnni Winther
2012/11/05 16:23:29
Done.
|
| + } |
| + } |
| + |
| static List<String> getStrips(List<String> options) { |
| for (String option in options) { |