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
I get a problem when trying to access an uninitialized wasmModule. I used the example given here. I was attempting to perform a synchronous instantiation.
The text was updated successfully, but these errors were encountered:
Hi! Thanks for dropping the comment. I am getting an error that has to do with accessing the wasmModule variable from within the log function in the myConsole object (Node/JavaScript API - not within AssemblyScript). The same thing happens in both (a)synchronous cases. Here is the error signature:
UnhandledPromiseRejectionWarning: ReferenceError: Cannot access 'wasmModule' before initialization
The error appears to indicate that the module is being accessed before instantiation returns, i.e. code accessing the module runs before the await finished respectively then is called. This might also happen indirectly, for example if the module calls an import from WebAssembly during startup that in turn attempts to call back into WebAssembly from JS. If the latter is the case, --explicitStart may help (calling exports._start() manually after instantiation is complete).
I get a problem when trying to access an uninitialized
wasmModule
. I used the example given here. I was attempting to perform a synchronous instantiation.The text was updated successfully, but these errors were encountered: