Closed Secretmapper closed 2 years ago
Could you please test this WASM binding with Webpack5's asyncWebAssembly
and check if Webpack 5 could handle this correctly?
@Menci I've tried to look into it, and in the process it seems like I should have checked the related issues of the one I linked - the bug seems to have been fixed by this PR:
https://github.com/rustwasm/wasm-bindgen/pull/2965
Closing as it's a wasm-bindgen issue.
Could you please test this WASM binding with Webpack5's
asyncWebAssembly
and check if Webpack 5 could handle this correctly?
I tested that everything was normal in webpack5
Yes, I also found that Webpack 5 could load buggy bindings successfully. But Node.js's native ESM WASM loader fails.
Steps to reproduce:
memory
before initialization on thebg
file. (Truncated below):The memory checking seems to have been changed since this PR: https://github.com/rustwasm/wasm-bindgen/pull/2886 and I'm guessing the initialization logic is different from what's now needed since the wasm file is referenced in the top level.