It seems that binaryen.js provides [setMemory](https://github.com/WebAssembly/binaryen/blob/master/src/js/binaryen.js-post.js#L763) but doesn't expose a way to import memory, yet. [addImport](https://github.com/WebAssembly/binaryen/blob/master/src/js/binaryen.js-post.js#L748) seems to be for functions, only. Opening this issue in the hope that someone more familiar with the code finds some time to add it.
It seems that binaryen.js provides setMemory but doesn't expose a way to import memory, yet. addImport seems to be for functions, only.
Opening this issue in the hope that someone more familiar with the code finds some time to add it.