Index: runtime/vm/service_test.cc |
diff --git a/runtime/vm/service_test.cc b/runtime/vm/service_test.cc |
index f5fe86f81f96425b075faf97865f2c812e884e99..0bae8ad5da5080f1c9c9ffe91d318f5b2fcd97ce 100644 |
--- a/runtime/vm/service_test.cc |
+++ b/runtime/vm/service_test.cc |
@@ -35,10 +35,8 @@ class ServiceTestMessageHandler : public MessageHandler { |
} |
// Parse the message. |
- MessageSnapshotReader reader(message->data(), |
- message->len(), |
- Isolate::Current(), |
- Thread::Current()->zone()); |
+ Thread* thread = Thread::Current(); |
+ MessageSnapshotReader reader(message->data(), message->len(), thread); |
const Object& response_obj = Object::Handle(reader.ReadObject()); |
String& response = String::Handle(); |
response ^= response_obj.raw(); |