Index: runtime/vm/native_api_impl.cc |
diff --git a/runtime/vm/native_api_impl.cc b/runtime/vm/native_api_impl.cc |
index da1d09964a6d5aec8e11df27502693529b30433d..5f091ba5fd36ac1bc7354dfcd11958ac77677d7d 100644 |
--- a/runtime/vm/native_api_impl.cc |
+++ b/runtime/vm/native_api_impl.cc |
@@ -71,7 +71,8 @@ DART_EXPORT bool Dart_CloseNativePort(Dart_Port native_port_id) { |
static void CompileAll(Isolate* isolate, Dart_Handle* result) { |
ASSERT(isolate != NULL); |
- const Error& error = Error::Handle(isolate, Library::CompileAll()); |
+ const Error& error = |
+ Error::Handle(isolate->current_zone(), Library::CompileAll()); |
if (error.IsNull()) { |
*result = Api::Success(); |
} else { |