From e61064949214b9eebdbf9faad58b71afd240ff15 Mon Sep 17 00:00:00 2001 From: Pavel Savara Date: Thu, 4 Apr 2024 15:05:53 +0200 Subject: [PATCH] [browser][MT] fix void Main (#100629) --- .../Runtime/InteropServices/JavaScript/JSHostImplementation.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libraries/System.Runtime.InteropServices.JavaScript/src/System/Runtime/InteropServices/JavaScript/JSHostImplementation.cs b/src/libraries/System.Runtime.InteropServices.JavaScript/src/System/Runtime/InteropServices/JavaScript/JSHostImplementation.cs index b62f347a00d05..f4653c5e35041 100644 --- a/src/libraries/System.Runtime.InteropServices.JavaScript/src/System/Runtime/InteropServices/JavaScript/JSHostImplementation.cs +++ b/src/libraries/System.Runtime.InteropServices.JavaScript/src/System/Runtime/InteropServices/JavaScript/JSHostImplementation.cs @@ -229,6 +229,9 @@ public static void LoadSatelliteAssembly(byte[] dllBytes) if (method.ReturnType == typeof(void)) { method.Invoke(null, argsToPass); +#if FEATURE_WASM_MANAGED_THREADS + result = Task.FromResult(0); +#endif } else if (method.ReturnType == typeof(int)) {