Skip to content

Commit

Permalink
make sendByteArray also fire and forget (#99904)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelsavara committed Mar 19, 2024
1 parent f4833ea commit c622e43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mono/browser/runtime/invoke-cs.ts
Expand Up @@ -42,7 +42,7 @@ export function mono_wasm_bind_cs_function(method: MonoMethod, assemblyName: str
// hack until we have public API for JSType.DiscardNoWait
if (WasmEnableThreads && shortClassName === "DefaultWebAssemblyJSRuntime"
&& namespaceName === "Microsoft.AspNetCore.Components.WebAssembly.Services"
&& (methodName === "BeginInvokeDotNet" || methodName === "EndInvokeJS")) {
&& (methodName === "BeginInvokeDotNet" || methodName === "EndInvokeJS" || methodName === "ReceiveByteArrayFromJS")) {
res_marshaler_type = MarshalerType.DiscardNoWait;
}

Expand Down

0 comments on commit c622e43

Please sign in to comment.