diff --git a/src/Microsoft.Blazor.Browser/Interop/WebAssembly.Runtime.cs b/src/Microsoft.Blazor.Browser/Interop/WebAssembly.Runtime.cs index 21d8c937a6..4f44807817 100644 --- a/src/Microsoft.Blazor.Browser/Interop/WebAssembly.Runtime.cs +++ b/src/Microsoft.Blazor.Browser/Interop/WebAssembly.Runtime.cs @@ -24,5 +24,10 @@ namespace WebAssembly // driver.c in the Mono distribution [MethodImpl(MethodImplOptions.InternalCall)] static extern string InvokeJS(string str, out int resultIsException); + + // The exact namespace, type, and method name must match the corresponding entry in + // driver.c in the Mono distribution + [MethodImpl(MethodImplOptions.InternalCall)] + public static extern object InvokeJSUnmarshalled(string funcExpression, object[] args, out int resultIsException); } }