Skip to content

webidl-bindings table does not contain valid function indices #711

Closed
@yurydelendik

Description

@yurydelendik

🐛 Bug description

The wasm-pack executes step wasm_opt after wasm_bindgen. The wasm_bindgen generates 'webidl-bindings' table with specific function ids in it. When wasm_opt is run, the function ids changed, e.g. some import or local functions are removed, thus breaking the webidl-bindings references.

🤔 Expected Behavior

The 'webidl-bindings' table contains right indices.

👟 Steps to reproduce

(Too deep a bug chain, depends on fixes at rust-lang/rust#64187 and #654)

🌍 Your environment

Include the relevant details of your environment.
wasm-pack version: 0.8.1
rustc version:

/cc @alexcrichton

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