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)) {