| Index: runtime/vm/dart_api_impl.cc
|
| diff --git a/runtime/vm/dart_api_impl.cc b/runtime/vm/dart_api_impl.cc
|
| index 89d602af857135d890e2efc000a61e066ff23182..3316c215145c885cc06705ce2700cd8e79a8712b 100644
|
| --- a/runtime/vm/dart_api_impl.cc
|
| +++ b/runtime/vm/dart_api_impl.cc
|
| @@ -1501,6 +1501,10 @@ DART_EXPORT bool Dart_IsolateMakeRunnable(Dart_Isolate isolate) {
|
| }
|
| // TODO(16615): Validate isolate parameter.
|
| Isolate* iso = reinterpret_cast<Isolate*>(isolate);
|
| + if (iso->object_store()->root_library() == Library::null()) {
|
| + // The embedder should have called Dart_LoadScript by now.
|
| + return false;
|
| + }
|
| return iso->MakeRunnable();
|
| }
|
|
|
|
|