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

Unified Diff: compiler/java/com/google/dart/compiler/DefaultCompilerConfiguration.java

Issue 8404004: Don't throw assertion when dart:lib cannot be found. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 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 | compiler/java/com/google/dart/compiler/SystemLibraryManager.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/java/com/google/dart/compiler/DefaultCompilerConfiguration.java
diff --git a/compiler/java/com/google/dart/compiler/DefaultCompilerConfiguration.java b/compiler/java/com/google/dart/compiler/DefaultCompilerConfiguration.java
index e6c83d0ac7d38e247c92a8af57d2c21cee8e47f0..a65ddfaa78159be99777cd9a3dc37fef182ac93b 100644
--- a/compiler/java/com/google/dart/compiler/DefaultCompilerConfiguration.java
+++ b/compiler/java/com/google/dart/compiler/DefaultCompilerConfiguration.java
@@ -208,6 +208,11 @@ public class DefaultCompilerConfiguration implements CompilerConfiguration {
} catch (URISyntaxException e) {
throw new RuntimeException(e);
}
+
+ // Verify the dart system library exists
+ if( null == this.systemLibraryManager.expandRelativeDartUri(systemUri) ) {
+ return null;
+ }
return new UrlLibrarySource(systemUri, this.systemLibraryManager);
}
« no previous file with comments | « no previous file | compiler/java/com/google/dart/compiler/SystemLibraryManager.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698