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
Get error: Cannot access memory before initialization on the bg file. (Truncated below):
import*aswasmfrom'/-/hello-wasm/hello_wasm_bg.wasm?import';letcachedUint8Memory0;functiongetUint8Memory0(){if(cachedUint8Memory0.byteLength===0){cachedUint8Memory0=newUint8Array(wasm.memory.buffer);}returncachedUint8Memory0;}cachedUint8Memory0=newUint8Array(wasm.memory.buffer);// Uncaught ReferenceError: Cannot access 'memory' before initialization
The memory checking seems to have been changed since this PR: rustwasm/wasm-bindgen#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.
The text was updated successfully, but these errors were encountered:
@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:
Steps to reproduce:
memory
before initialization on thebg
file. (Truncated below):The memory checking seems to have been changed since this PR: rustwasm/wasm-bindgen#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.
The text was updated successfully, but these errors were encountered: