| Index: runtime/bin/gen_snapshot.cc
|
| diff --git a/runtime/bin/gen_snapshot.cc b/runtime/bin/gen_snapshot.cc
|
| index 9ce1b2c44732ec461eef87e25ee5212a727c7caf..0b69d91f35e67ae1877d487d40a5784ab3af9bd9 100644
|
| --- a/runtime/bin/gen_snapshot.cc
|
| +++ b/runtime/bin/gen_snapshot.cc
|
| @@ -335,8 +335,8 @@ static Dart_Handle CreateSnapshotLibraryTagHandler(Dart_LibraryTag tag,
|
| }
|
|
|
| Builtin::BuiltinLibraryId builtinId = BuiltinId(url_string);
|
| - if (builtinId != Builtin::kInvalidLibrary) {
|
| - // Special case for importing a builtin library.
|
| + if ((builtinId != Builtin::kInvalidLibrary) && (mapped_url_string == NULL)) {
|
| + // Special case for importing a builtin library that isn't remapped.
|
| if (tag == Dart_kImportTag) {
|
| return Builtin::LoadLibrary(url, builtinId);
|
| }
|
|
|