(bytes: &[u8])
| 711 | } |
| 712 | |
| 713 | fn parse_module_bytes(bytes: &[u8]) -> Result<Module> { |
| 714 | Ok(tinywasm::parse_bytes(bytes)?) |
| 715 | } |
| 716 | |
| 717 | fn convert_wastargs(args: Vec<wast::WastArg>) -> Result<Vec<WasmValue>> { |
| 718 | args.into_iter().map(wastarg2tinywasmvalue).collect() |