| Index: runtime/bin/gen_snapshot.cc
|
| diff --git a/runtime/bin/gen_snapshot.cc b/runtime/bin/gen_snapshot.cc
|
| index ea6911918fcbd4ff9397771ea59ef55ce7075eb2..28785efae7274d16efb9690fc9aad71182a3ca90 100644
|
| --- a/runtime/bin/gen_snapshot.cc
|
| +++ b/runtime/bin/gen_snapshot.cc
|
| @@ -296,6 +296,11 @@ static Dart_Handle CreateSnapshotLibraryTagHandler(Dart_LibraryTag tag,
|
| return ResolveUri(library_url_string, url_string);
|
| }
|
|
|
| + if (DartUtils::IsDartIOLibURL(url_string) && mapped_url_string == NULL) {
|
| + // No url mapping for dart:io. Load original version.
|
| + return Builtin::LoadAndCheckLibrary(Builtin::kIOLibrary);
|
| + }
|
| +
|
| Dart_Handle resolved_url = url;
|
| if (mapped_url_string != NULL) {
|
| // Mapped urls are relative to working directory.
|
|
|