Closed
Description
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
- Clone https://github.com/domoritz/arrow-wasm/tree/bc8cc58b0cdedf4754a190de62b6d5a088ac40b5
- Install wasm bindgen cli
- Run
yarn build
- Start python web server
- Go to http://localhost:8000/examples/index_web.html (ideally in FF so you don't need extra flags to enable reference types)
- 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
.