Index: runtime/vm/object.cc |
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc |
index 604b697fe5595414a13d8b3ad401b0938df40ebe..3226c9ed0971ebe8c5344e9231596f4a6225b382 100644 |
--- a/runtime/vm/object.cc |
+++ b/runtime/vm/object.cc |
@@ -10653,7 +10653,7 @@ bool LibraryPrefix::LoadLibrary() const { |
} else if (deferred_lib.LoadNotStarted()) { |
Thread* thread = Thread::Current(); |
Isolate* isolate = thread->isolate(); |
- Api::Scope api_scope(isolate); |
+ Api::Scope api_scope(thread); |
Zone* zone = thread->zone(); |
deferred_lib.SetLoadRequested(); |
const GrowableObjectArray& pending_deferred_loads = |