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

Unified Diff: pkg/compiler/lib/src/library_loader.dart

Issue 2865693002: Create closed world for hello world using .dill file (Closed)
Patch Set: Created 3 years, 7 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
Index: pkg/compiler/lib/src/library_loader.dart
diff --git a/pkg/compiler/lib/src/library_loader.dart b/pkg/compiler/lib/src/library_loader.dart
index 12b91c4dc872c390c8bb57e9ab4672d2cc8088c1..3968cd72da0f348bb47e3ac1c7a8e42eed0e397a 100644
--- a/pkg/compiler/lib/src/library_loader.dart
+++ b/pkg/compiler/lib/src/library_loader.dart
@@ -835,7 +835,8 @@ class DillLibraryLoaderTask extends CompilerTask implements LibraryLoaderTask {
// away.
Future<LoadedLibraries> loadLibrary(Uri resolvedUri,
{bool skipFileWithPartOfTag: false}) {
- assert(resolvedUri.pathSegments.last.endsWith('.dill'));
+ assert(resolvedUri.pathSegments.last.endsWith('.dill'),
+ 'Invalid uri: $resolvedUri');
Uri readableUri = uriTranslator.translate(null, resolvedUri, null);
return measure(() async {
Script script = await scriptLoader.readScript(readableUri, null);

Powered by Google App Engine
This is Rietveld 408576698