| Index: runtime/vm/dart_api_impl.cc
|
| diff --git a/runtime/vm/dart_api_impl.cc b/runtime/vm/dart_api_impl.cc
|
| index c6b78b2648233269cf25bccfe6c96195a9550a54..ac2b4613d296d8ed8a45b87bacbda6537a879d94 100644
|
| --- a/runtime/vm/dart_api_impl.cc
|
| +++ b/runtime/vm/dart_api_impl.cc
|
| @@ -1376,6 +1376,10 @@ DART_EXPORT bool Dart_ShouldPauseOnStart() {
|
| DART_EXPORT void Dart_SetShouldPauseOnStart(bool should_pause) {
|
| Isolate* isolate = Isolate::Current();
|
| CHECK_ISOLATE(isolate);
|
| + if (isolate->is_runnable()) {
|
| + FATAL1("%s expects the current isolate to not be runnable yet.",
|
| + CURRENT_FUNC);
|
| + }
|
| return isolate->message_handler()->set_should_pause_on_start(should_pause);
|
| }
|
|
|
|
|