Oh this is really cool! Since the repl is just executing wasm, could this not work in the browser? I realize you'll probably need to create a new wasm module every time you run a statement but could still be neat!
Typically on first thought I would associate REPL with command line hence went with this approach.
Good idea nevertheless!