Skip to content

Commit e610649

Browse files
authored
[browser][MT] fix void Main (#100629)
1 parent ffb2578 commit e610649

File tree

1 file changed

+3
-0
lines changed
  • src/libraries/System.Runtime.InteropServices.JavaScript/src/System/Runtime/InteropServices/JavaScript

1 file changed

+3
-0
lines changed

src/libraries/System.Runtime.InteropServices.JavaScript/src/System/Runtime/InteropServices/JavaScript/JSHostImplementation.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,9 @@ public static void LoadSatelliteAssembly(byte[] dllBytes)
229229
if (method.ReturnType == typeof(void))
230230
{
231231
method.Invoke(null, argsToPass);
232+
#if FEATURE_WASM_MANAGED_THREADS
233+
result = Task.FromResult(0);
234+
#endif
232235
}
233236
else if (method.ReturnType == typeof(int))
234237
{

0 commit comments

Comments
 (0)