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

Unified Diff: runtime/bin/gen_snapshot.cc

Issue 14366024: Add fallback to load the original version of dart:io library (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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/gen_snapshot.cc
diff --git a/runtime/bin/gen_snapshot.cc b/runtime/bin/gen_snapshot.cc
index ea6911918fcbd4ff9397771ea59ef55ce7075eb2..2880913471844e45e0e0b738340b54538b4f0d1a 100644
--- a/runtime/bin/gen_snapshot.cc
+++ b/runtime/bin/gen_snapshot.cc
@@ -305,6 +305,11 @@ static Dart_Handle CreateSnapshotLibraryTagHandler(Dart_LibraryTag tag,
}
}
+ if (DartUtils::IsDartIOLibURL(url_string)) {
+ // No url mapping for dart:io. Load original version.
+ return Builtin::LoadAndCheckLibrary(Builtin::kIOLibrary);
+ }
siva 2013/04/19 17:47:50 Not sure if I understand this. The comment states
podivilov 2013/04/20 07:34:22 Good spot! I misinterpreted "return resolved_url"
+
// Get the file path out of the url.
Dart_Handle file_path = FilePathFromUri(
DartUtils::GetStringValue(resolved_url));
« 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