WebAssembly JS API: implement basic stub