Merge pull request #3763 from akoeplinger/move-type
[mono.git] / mono / metadata / string-icalls.c
index be330aa413a76fb8e08c626c6851795937d005ce..abbccd6a19a633dbb8d8f2b6a4cf4a7d3fd2fa3c 100644 (file)
@@ -39,7 +39,7 @@ ves_icall_System_String_InternalAllocateStr (gint32 length)
 {
        MonoError error;
        MonoString *str = mono_string_new_size_checked (mono_domain_get (), length, &error);
-       mono_error_raise_exception (&error);
+       mono_error_set_pending_exception (&error);
 
        return str;
 }