Skip to content

Commit

Permalink
In mono_wasm_invoke_js_marshalled, pass through treatResultAsVoid par…
Browse files Browse the repository at this point in the history
…ameter (#39435)
  • Loading branch information
SteveSandersonMS authored Aug 5, 2020
1 parent 8250b0a commit 04e86c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mono/wasm/runtime/dotnet_support.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ var DotNetSupportLib = {
return MONO.string_decoder.copy (mono_obj);
}
},
mono_wasm_invoke_js_marshalled: function(exceptionMessage, asyncHandleLongPtr, functionName, argsJson) {
mono_wasm_invoke_js_marshalled: function(exceptionMessage, asyncHandleLongPtr, functionName, argsJson, treatResultAsVoid) {

var mono_string = DOTNET._dotnet_get_global()._mono_string_cached
|| (DOTNET._dotnet_get_global()._mono_string_cached = Module.cwrap('mono_wasm_string_from_js', 'number', ['string']));
Expand All @@ -54,10 +54,10 @@ var DotNetSupportLib = {
}

if (asyncHandleJsNumber) {
dotNetExports.jsCallDispatcher.beginInvokeJSFromDotNet(asyncHandleJsNumber, funcNameJsString, argsJsonJsString);
dotNetExports.jsCallDispatcher.beginInvokeJSFromDotNet(asyncHandleJsNumber, funcNameJsString, argsJsonJsString, treatResultAsVoid);
return 0;
} else {
var resultJson = dotNetExports.jsCallDispatcher.invokeJSFromDotNet(funcNameJsString, argsJsonJsString);
var resultJson = dotNetExports.jsCallDispatcher.invokeJSFromDotNet(funcNameJsString, argsJsonJsString, treatResultAsVoid);
return resultJson === null ? 0 : mono_string(resultJson);
}
} catch (ex) {
Expand Down

0 comments on commit 04e86c3

Please sign in to comment.