Index: runtime/vm/snapshot_test.cc |
diff --git a/runtime/vm/snapshot_test.cc b/runtime/vm/snapshot_test.cc |
index 56cbfd626d84d6605f3981380772f97382ec3a8b..6c04f3af2fb524f5a849a9a344f2b84dc7853bb5 100644 |
--- a/runtime/vm/snapshot_test.cc |
+++ b/runtime/vm/snapshot_test.cc |
@@ -1119,9 +1119,10 @@ static void IterateScripts(const Library& lib) { |
} |
TEST_CASE(GenerateSource) { |
- Isolate* isolate = Isolate::Current(); |
+ Zone* zone = thread->zone(); |
+ Isolate* isolate = thread->isolate(); |
const GrowableObjectArray& libs = GrowableObjectArray::Handle( |
- isolate, isolate->object_store()->libraries()); |
+ zone, isolate->object_store()->libraries()); |
Library& lib = Library::Handle(); |
String& uri = String::Handle(); |
for (intptr_t i = 0; i < libs.Length(); i++) { |