Add API for unmarshalled .NET -> JS invocations (passing and returning .NET heap object pointers)

This commit is contained in:
Steve Sanderson 2017-12-15 14:26:40 +00:00
parent 748903c62f
commit 99a08da321
1 changed files with 5 additions and 0 deletions

View File

@ -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);
}
}