WebAssembly / WebAssembly/binaryen

ctor-eval crashes when the same name is imported twice

Open
#8,138 2 comments 0 reactions 1 assignee View on GitHub

@stevenfontanella is already working on this.

Since Dec 16, 2025.

  • #8137 by @stevenfontanella — merged
Dominant language
WebAssembly
Stars
8.6k
Forks
885
Avg merge
1d 19h
Merged PRs (30d)
69

Description

https://github.com/WebAssembly/binaryen/pull/8115#issuecomment-3661620019

Caused by #8115. We should create a stub only once for each qualified name. Also, if a name is imported multiple times with different types, we can try to make a stub with a common subtype that allows both imports to work (e.g. unreachable for functions since stubs can't be called anyway).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.