-
Notifications
You must be signed in to change notification settings - Fork 76
Closed
Description
Are imported functions (FunctionImport) with a void return type supported by DNWASM?
I was trying to load a fairly simple wasm file that relied on function import, whose expected signature type matches (type $t1 (func (param i32))).
I provided my .NET-defined function using various forms but they all produced errors, her are a couple of the obvious ones:
| My Func | Error |
|---|---|
public static void foo(int c) |
Parameter name: Return type System.Void is not compatible with WebAssembly. |
public static int foo(int c) |
Unhandled Exception: WebAssembly.CompilerException: env::putc_js did not match the required type signature. |
Metadata
Metadata
Assignees
Labels
No labels