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

Unified Diff: sdk/lib/_internal/compiler/implementation/source_file_provider.dart

Issue 17759007: First pass at asynchronous input loading in dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Change to unix line endings. Created 7 years, 5 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: sdk/lib/_internal/compiler/implementation/source_file_provider.dart
diff --git a/sdk/lib/_internal/compiler/implementation/source_file_provider.dart b/sdk/lib/_internal/compiler/implementation/source_file_provider.dart
index 4cbd6411e0a5e93fc2371d53c0c49a4b6c90a039..dfa7791c2c1bc15c32080845d610b3b7de5b9d15 100644
--- a/sdk/lib/_internal/compiler/implementation/source_file_provider.dart
+++ b/sdk/lib/_internal/compiler/implementation/source_file_provider.dart
@@ -38,8 +38,9 @@ class SourceFileProvider {
try {
source = readAll(uriPathToNative(resourceUri.path));
} on FileException catch (ex) {
- throw 'Error: Cannot read "${relativize(cwd, resourceUri, isWindows)}" '
- '(${ex.osError}).';
+ return new Future.error(
ahe 2013/08/02 11:50:19 As far as I'm concerned, the compiler should be ab
Johnni Winther 2013/08/02 13:47:47 Done.
+ 'Error: Cannot read "${relativize(cwd, resourceUri, isWindows)}" '
+ '(${ex.osError}).');
}
dartCharactersRead += source.length;
sourceFiles[resourceUri.toString()] = new SourceFile(

Powered by Google App Engine
This is Rietveld 408576698