Index: runtime/vm/dart_api_impl.cc |
diff --git a/runtime/vm/dart_api_impl.cc b/runtime/vm/dart_api_impl.cc |
index 89a22ce2977bad734f1d1fa0d2aa88f3e2f0d4e7..caea813fdc49012e6c05893b1e5641742720baf5 100644 |
--- a/runtime/vm/dart_api_impl.cc |
+++ b/runtime/vm/dart_api_impl.cc |
@@ -376,7 +376,7 @@ RawObject* Api::UnwrapHandle(Dart_Handle object) { |
ASSERT(state != NULL); |
ASSERT(!FLAG_verify_handles || |
state->IsValidLocalHandle(object) || |
- Dart::vm_isolate()->api_state()->IsValidLocalHandle(object)); |
+ Dart::IsReadOnlyApiHandle(object)); |
ASSERT(FinalizablePersistentHandle::raw_offset() == 0 && |
PersistentHandle::raw_offset() == 0 && |
LocalHandle::raw_offset() == 0); |