()
| 216 | } |
| 217 | |
| 218 | private stopUnwind() : void { |
| 219 | if (this.exports.asyncify_stop_unwind === undefined) { |
| 220 | throw Error("Asynctify is not enabled, please compile with -s ASYNCIFY=1 in emcc"); |
| 221 | } |
| 222 | this.exports.asyncify_stop_unwind(); |
| 223 | this.state = AsyncifyStateKind.None; |
| 224 | } |
| 225 | /** |
| 226 | * Initialize the wasm memory to setup necessary meta-data |
| 227 | * for asynctify handling |