| Index: runtime/vm/dart_api_impl.cc
|
| diff --git a/runtime/vm/dart_api_impl.cc b/runtime/vm/dart_api_impl.cc
|
| index 6567b579befc5bd7ed9c1cffb2ea317dcd937f14..8315a460aff94f4d300773f5d2b3124ea7bca8a7 100644
|
| --- a/runtime/vm/dart_api_impl.cc
|
| +++ b/runtime/vm/dart_api_impl.cc
|
| @@ -1568,7 +1568,7 @@ DART_EXPORT Dart_Handle Dart_HandleMessage() {
|
| CHECK_API_SCOPE(T);
|
| CHECK_CALLBACK_STATE(T);
|
| API_TIMELINE_BEGIN_END;
|
| - TransitionNativeToVM trainsition(T);
|
| + TransitionNativeToVM transition(T);
|
| if (I->message_handler()->HandleNextMessage() != MessageHandler::kOK) {
|
| Dart_Handle error = Api::NewHandle(T, I->object_store()->sticky_error());
|
| I->object_store()->clear_sticky_error();
|
| @@ -1584,7 +1584,7 @@ DART_EXPORT bool Dart_HandleServiceMessages() {
|
| CHECK_API_SCOPE(T);
|
| CHECK_CALLBACK_STATE(T);
|
| API_TIMELINE_DURATION;
|
| - TransitionNativeToVM trainsition(T);
|
| + TransitionNativeToVM transition(T);
|
| ASSERT(I->GetAndClearResumeRequest() == false);
|
| MessageHandler::MessageStatus status =
|
| I->message_handler()->HandleOOBMessages();
|
| @@ -4421,6 +4421,7 @@ DART_EXPORT Dart_Handle Dart_ThrowException(Dart_Handle exception) {
|
| return Api::NewError("No Dart frames on stack, cannot throw exception");
|
| }
|
|
|
| + TransitionNativeToVM transition(thread);
|
| // Unwind all the API scopes till the exit frame before throwing an
|
| // exception.
|
| const Instance* saved_exception;
|
| @@ -4459,6 +4460,7 @@ DART_EXPORT Dart_Handle Dart_ReThrowException(Dart_Handle exception,
|
| return Api::NewError("No Dart frames on stack, cannot throw exception");
|
| }
|
|
|
| + TransitionNativeToVM transition(thread);
|
| // Unwind all the API scopes till the exit frame before throwing an
|
| // exception.
|
| const Instance* saved_exception;
|
|
|