| Index: runtime/vm/compiler.cc
|
| diff --git a/runtime/vm/compiler.cc b/runtime/vm/compiler.cc
|
| index 36b94b24dcea3580ae847f90bc52726fe579f77b..a162f5a4e28b4a5811da2654ad56c91ec2e94ee3 100644
|
| --- a/runtime/vm/compiler.cc
|
| +++ b/runtime/vm/compiler.cc
|
| @@ -474,7 +474,8 @@ RawError* Compiler::CompileClass(const Class& cls) {
|
| parse_class.reset_is_marked_for_parsing();
|
| }
|
| }
|
| - Error& error = Error::Handle(zone.GetZone());
|
| + Thread* thread = Thread::Current();
|
| + Error& error = Error::Handle(thread->zone());
|
| error = thread->sticky_error();
|
| thread->clear_sticky_error();
|
| return error.raw();
|
|
|