Wasm2js error handling improvement (#1807)
Wasm2js error handling improvement (#1807)

Move the code around so the assertions are not caught in the big try-catch that reports errors as parsing errors.
WebAssembly/binaryen,WebAssembly/binaryen,WebAssembly/binaryen,WebAssembly/binaryen,WebAssembly/binaryen