Skip to content

Duplicate imports break annotation code generation #37

@andreaTP

Description

@andreaTP

In this example, the Go compiled module has 2 imports fd_write.
This is legal Wasm and the engine works great but the WasmModuleInterface breaks as it is emitting two colliding functions in the same class.

Since this is allowed, we need a way to gracefully handle this case.

As a viable workaround, is possible, today to use wasm-opt:

wasm-opt --duplicate-function-elimination

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions