Skip to content

expression has type externref but expected i32  #2446

Closed
@domoritz

Description

@domoritz

Describe the Bug

When I compile my project with --reference-types, I get expression has type externref but expected i32 in Firefox (nightly 87.0a1 (2021-02-04) as well as beta) and Chrome (with flags to enable reference types).

Steps to Reproduce

  1. Clone https://github.com/domoritz/arrow-wasm/tree/bc8cc58b0cdedf4754a190de62b6d5a088ac40b5
  2. Install wasm bindgen cli
  3. Run yarn build
  4. Start python web server
  5. Go to http://localhost:8000/examples/index_web.html (ideally in FF so you don't need extra flags to enable reference types)
  6. See error

Expected Behavior

Without --reference-types the library works so I would expect it to work with the flag as well.

Actual Behavior

Error expression has type externref but expected i32.

Screen Shot 2021-02-04 at 21 44 52

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions