| Index: runtime/vm/dart_api_impl.cc
|
| ===================================================================
|
| --- runtime/vm/dart_api_impl.cc (revision 19583)
|
| +++ runtime/vm/dart_api_impl.cc (working copy)
|
| @@ -1006,8 +1006,10 @@
|
| Isolate* isolate = Isolate::Current();
|
| CHECK_ISOLATE(isolate);
|
| if (!isolate->message_handler()->HandleNextMessage()) {
|
| - // TODO(turnidge): Clear sticky error here?
|
| - return Api::NewHandle(isolate, isolate->object_store()->sticky_error());
|
| + Dart_Handle error =
|
| + Api::NewHandle(isolate, isolate->object_store()->sticky_error());
|
| + isolate->object_store()->clear_sticky_error();
|
| + return error;
|
| }
|
| return Api::Success(isolate);
|
| }
|
|
|