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

Unified Diff: runtime/bin/process_script.cc

Issue 8439025: Fail if an imported file cannot be read. (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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/process_script.cc
diff --git a/runtime/bin/process_script.cc b/runtime/bin/process_script.cc
index d20062278da4852f5f588615c5a5cea9c7ba4657..e06d9ffec6e057ed7d493ad8ae9fe5bedf2f097f 100644
--- a/runtime/bin/process_script.cc
+++ b/runtime/bin/process_script.cc
@@ -131,7 +131,7 @@ static Dart_Handle LibraryTagHandlerHelper(Dart_LibraryTag tag,
// url chars.
Dart_Handle source = ReadStringFromFile(url_chars);
if (!Dart_IsValid(source)) {
- return result;
+ return source;
}
if (tag == kImportTag) {
Dart_Handle new_lib = Dart_LoadLibrary(url, source);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698