Fix Module.initFromWat

main
copygirl 1 year ago
parent 41514ca133
commit ca386fde1b
  1. 2
      src/module.zig

@ -23,7 +23,7 @@ pub const Module = opaque {
} }
pub fn initFromWat(engine: *Engine, wat_bytes: []const u8, diag: ?*Diagnostics) !*Module { pub fn initFromWat(engine: *Engine, wat_bytes: []const u8, diag: ?*Diagnostics) !*Module {
const wasm_bytes = try wat2wasm(wat_bytes); const wasm_bytes = try wat2wasm(wat_bytes, diag);
defer wasm_bytes.deinit(); defer wasm_bytes.deinit();
return init(engine, wasm_bytes.toSlice(), diag); return init(engine, wasm_bytes.toSlice(), diag);
} }

Loading…
Cancel
Save