Index: runtime/lib/vmservice.cc |
diff --git a/runtime/lib/vmservice.cc b/runtime/lib/vmservice.cc |
index 83a25e1b98e05a308b81b42abe60bf470afee8a2..694221e19fa81f9cb25038ae0cbaa44b10e99e6f 100644 |
--- a/runtime/lib/vmservice.cc |
+++ b/runtime/lib/vmservice.cc |
@@ -342,6 +342,7 @@ static void FilenameFinalizer(void* peer) { |
DEFINE_NATIVE_ENTRY(VMService_DecodeAssets, 1) { |
GET_NON_NULL_NATIVE_ARGUMENT(TypedData, data, arguments->NativeArgAt(0)); |
+ TransitionVMToNative transition(thread); |
Api::Scope scope(thread); |
Dart_Handle data_handle = Api::NewHandle(thread, data.raw()); |