You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: failed to generate bindings for import `Closure(Closure { shim_idx: 20, dtor_idx: 21, function: Function { arguments: [Anyref], shim_idx: 20, ret: Unit }, mutable: true })`
caused by: no function table found in module
Error: Running the wasm-bindgen CLI
This is using the latest wasm-bindgen (0.2.46) and latest wasm-pack (0.8.1)
The text was updated successfully, but these errors were encountered:
Recent refactorings of wasm-bindgen have inserted multiple `gc` passes
executed by walrus. In these passes though the function table was being
removed a bit too aggressively because it's not exported by LLD and it's
only later that we realize we need to export it.
To handle this case we add synthetic and temporary exports of the
function table and these exports are removed just after the GC pass in
question.
Closesrustwasm#1603
alexcrichton
added a commit
to alexcrichton/wasm-bindgen
that referenced
this issue
Jun 18, 2019
Recent refactorings of wasm-bindgen have inserted multiple `gc` passes
executed by walrus. In these passes though the function table was being
removed a bit too aggressively because it's not exported by LLD and it's
only later that we realize we need to export it.
To handle this case we add synthetic and temporary exports of the
function table and these exports are removed just after the GC pass in
question.
Closesrustwasm#1603
Steps to Reproduce
The code is here
Run
npm install
Run
npm run build-prod-force
I get this error:
This is using the latest wasm-bindgen (0.2.46) and latest wasm-pack (0.8.1)
The text was updated successfully, but these errors were encountered: