The Js api can't be used to iterate over WebAssembly functions and exports.
This feature could be really useful.
For now, to get a function, we need, at least, to know its name.
[ Edit: In a more general way, binaryen (via its js wrapper) could be able to list the exports, the data sections, the globals and all the functions. ]