| Index: runtime/vm/dart_api_impl.h
|
| ===================================================================
|
| --- runtime/vm/dart_api_impl.h (revision 44762)
|
| +++ runtime/vm/dart_api_impl.h (working copy)
|
| @@ -291,7 +291,10 @@
|
| : saved_isolate_(current_isolate) {
|
| }
|
| ~IsolateSaver() {
|
| - Isolate::SetCurrent(saved_isolate_);
|
| + // TODO(koda): Audit users; they should know whether they're in an isolate.
|
| + if (saved_isolate_ != NULL) {
|
| + Thread::EnterIsolate(saved_isolate_);
|
| + }
|
| }
|
| private:
|
| Isolate* saved_isolate_;
|
|
|