wasm: Implement error unions as well as returning them
This implements basic calling convention resolving. This means that for
types such as an error union, we will now allocate space on the stack to store the result.
This result will then be saved in a temporary local at the callsite.
460b3d39eaLuuk de Gram committed on 11/21/2021, 8:07:55 PMparentb2221e5