From 04e86c3b8a8925b5ecb8c16a78281b4f412b533e Mon Sep 17 00:00:00 2001 From: Steve Sanderson Date: Wed, 5 Aug 2020 20:10:13 +0100 Subject: [PATCH] In mono_wasm_invoke_js_marshalled, pass through treatResultAsVoid parameter (#39435) --- src/mono/wasm/runtime/dotnet_support.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mono/wasm/runtime/dotnet_support.js b/src/mono/wasm/runtime/dotnet_support.js index 7411959b66b4a..c1ddc08b902e6 100644 --- a/src/mono/wasm/runtime/dotnet_support.js +++ b/src/mono/wasm/runtime/dotnet_support.js @@ -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'])); @@ -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) {