Skip to content

Commit e52e90a

Browse files
committed
Revert "feedback"
This reverts commit 4d95cb6.
1 parent 4d95cb6 commit e52e90a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/mono/mono/mini/interp/interp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3471,7 +3471,7 @@ interp_create_method_pointer (MonoMethod *method, gboolean compile, MonoError *e
34713471
MonoMethod *orig_method = info->d.native_to_managed.method;
34723472
if (!orig_method) {
34733473
char *s = mono_method_get_full_name (method);
3474-
char *msg = g_strdup_printf ("No native to managed transition for method '%s'. Dynamic entrypoint allocation is not supported in the current environment.", s);
3474+
char *msg = g_strdup_printf ("No native to managed transition for method '%s', missing [UnmanagedCallersOnly] attribute.", s);
34753475
mono_error_set_platform_not_supported (error, msg);
34763476
g_free (s);
34773477
g_free (msg);
@@ -3498,7 +3498,7 @@ interp_create_method_pointer (MonoMethod *method, gboolean compile, MonoError *e
34983498
* right signature, so fail right away.
34993499
*/
35003500
char *s = mono_method_get_full_name (orig_method);
3501-
char *msg = g_strdup_printf ("No native to managed transition for method '%s'. Dynamic entrypoint allocation is not supported in the current environment.", s);
3501+
char *msg = g_strdup_printf ("No native to managed transition for method '%s', missing [UnmanagedCallersOnly] attribute.", s);
35023502
mono_error_set_platform_not_supported (error, msg);
35033503
g_free (s);
35043504
g_free (msg);

src/mono/wasm/Wasm.Build.Tests/MiscTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ public async Task TestGetFunctionPointerForDelegate()
3232

3333
Assert.Equal(2, result.TestOutput.Count);
3434
Assert.Contains(result.TestOutput, m => m.Contains("System.PlatformNotSupportedException"));
35-
Assert.Contains(result.TestOutput, m => m.Contains("No native to managed transition for method '(wrapper native-to-managed) void MiscTests/<>c:<TestGetFunctionPointerForDelegate>b__0_0 ()'. Dynamic entrypoint allocation is not supported in the current environment."));
35+
Assert.Contains(result.TestOutput, m => m.Contains("No native to managed transition for method '(wrapper native-to-managed) void MiscTests/<>c:<TestGetFunctionPointerForDelegate>b__0_0 ()', missing [UnmanagedCallersOnly] attribute."));
3636
}
3737
}

0 commit comments

Comments
 (0)