[runtime] Use mono_assembly_get_object_handle instead of mono_assembly_get_object_che...
[mono.git] / mono / metadata / handle.c
index f5c10f92bf8380290ad6ec9206eb852341fa24aa..d62426a7190bb6dec2ae1ad6119d8f5ebcc0e6f6 100644 (file)
@@ -198,7 +198,9 @@ mono_stack_mark_record_size (MonoThreadInfo *info, HandleStackMark *stackmark, c
 MonoRawHandle
 mono_stack_mark_pop_value (MonoThreadInfo *info, HandleStackMark *stackmark, MonoRawHandle value)
 {
-       g_error ("impl me");
+       MonoObject *obj = value ? *((MonoObject**)value) : NULL;
+       mono_stack_mark_pop (info, stackmark);
+       return mono_handle_new (obj);
 }
 
 /* Temporary place for some of the handle enabled wrapper functions*/