Index: runtime/vm/precompiler.cc |
diff --git a/runtime/vm/precompiler.cc b/runtime/vm/precompiler.cc |
index 4c7efab9feb455bbf8ca40b15154ea184fab0344..23de86802da93937479d299841d37a570ff3ede6 100644 |
--- a/runtime/vm/precompiler.cc |
+++ b/runtime/vm/precompiler.cc |
@@ -45,9 +45,9 @@ RawError* Precompiler::CompileAll( |
precompiler.DoCompileAll(embedder_entry_points); |
return Error::null(); |
} else { |
- Isolate* isolate = Isolate::Current(); |
- const Error& error = Error::Handle(isolate->object_store()->sticky_error()); |
- isolate->object_store()->clear_sticky_error(); |
+ Thread* thread = Thread::Current(); |
+ const Error& error = Error::Handle(thread->sticky_error()); |
+ thread->clear_sticky_error(); |
return error.raw(); |
} |
} |