| Index: runtime/bin/gen_snapshot.cc
|
| diff --git a/runtime/bin/gen_snapshot.cc b/runtime/bin/gen_snapshot.cc
|
| index 637e1c0d213c9d85d75c154b3ddd0018dec7b365..5dd431bb4d4ac530c9c496ebb52ea5cc3cf371f1 100644
|
| --- a/runtime/bin/gen_snapshot.cc
|
| +++ b/runtime/bin/gen_snapshot.cc
|
| @@ -352,10 +352,16 @@ 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::LoadSourceAsync(library,
|
| + url,
|
| + tag,
|
| + builtin_lib);
|
| + if (Dart_IsError(result)) {
|
| + return result;
|
| + }
|
| + return Dart_RunLoop();
|
| }
|
|
|
|
|
|
|