Skip to content

Imported Functions with a Void return type #6

@ebekker

Description

@ebekker

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
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions