Closed
Description
I am following the instructions to "Instantiate the Game of Life via JavaScript". At this point, I get the following error when trying to instantiate:
Uncaught (in promise) LinkError: WebAssembly Instantiation: Import #1 module="env" function="__memory_base" error: global import must be a number or WebAssembly.Global object
This makes it impossible to reach the exports.
Attaching my javascript/html code as text.
index.html.txt
Activity
matsbror commentedon Nov 22, 2018
So I found out the reason. With later version of emcc replace
memoryBase
with__memory_base
andtableBase
with__table_base
sayantan-sadhukhan commentedon Aug 14, 2022
not working by replacing the table with __table_base & the memory with __memory_base ,the error is still there for me!
script.js:31 Uncaught (in promise) LinkError:
WebAssembly.instantiate(): Import #0 module="env" function="exit" error: function import requires a [callable]