| Index: runtime/bin/gen_snapshot.cc
|
| diff --git a/runtime/bin/gen_snapshot.cc b/runtime/bin/gen_snapshot.cc
|
| index 637e1c0d213c9d85d75c154b3ddd0018dec7b365..ad68a0d5f55e3134ac8c51df226ece69fc264896 100644
|
| --- a/runtime/bin/gen_snapshot.cc
|
| +++ b/runtime/bin/gen_snapshot.cc
|
| @@ -352,10 +352,13 @@ static Dart_Handle CreateSnapshotLibraryTagHandler(Dart_LibraryTag tag,
|
| return file_path;
|
| }
|
|
|
| - return DartUtils::LoadSource(library,
|
| - url,
|
| - tag,
|
| - DartUtils::GetStringValue(file_path));
|
| + Dart_Handle builtin_lib =
|
| + Builtin::LoadAndCheckLibrary(Builtin::kBuiltinLibrary);
|
| + Dart_Handle result = DartUtils::LoadSource(library, url, tag, builtin_lib);
|
| + if (Dart_IsError(result)) {
|
| + return result;
|
| + }
|
| + return Dart_RunLoop();
|
| }
|
|
|
|
|
|
|