(exports, message)
| 98 | } |
| 99 | |
| 100 | function stashError(exports, message) { |
| 101 | const bytes = TE.encode(message); |
| 102 | const ptr = exports.wasm_alloc(bytes.length); |
| 103 | new Uint8Array(exports.memory.buffer, ptr, bytes.length).set(bytes); |
| 104 | exports.host_edge_throw(ERR_RUNTIME, ptr, bytes.length); |
| 105 | exports.wasm_free(ptr, bytes.length); |
| 106 | } |