diff --git a/src/module.zig b/src/module.zig index fbd886a..156101c 100644 --- a/src/module.zig +++ b/src/module.zig @@ -23,7 +23,7 @@ pub const Module = opaque { } 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(); return init(engine, wasm_bytes.toSlice(), diag); }