Skip to content

Wasm merge loses start function from one of the merged modules #8692

@igoriakovlev

Description

@igoriakovlev

Using wasm-merge from the fresh binaryen sources (e9b4b4c).
Having a problem that if two modules being merged loses the one of start functions.

Steps to reproduce:

  1. Download attached file.
  2. node ./run.mjs

Expected:
Both values are equal 2.

Actual:
Splitted modules load have value 2.
Merged modules load have value 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions