mach: update wasm root.panic signature for latest Zig version

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-10-14 17:58:34 -07:00
parent 78cf48e022
commit e0e0a6d0bb

View file

@ -340,7 +340,9 @@ pub fn log(
js.machLogFlush();
}
pub fn panic(msg: []const u8, _: ?*std.builtin.StackTrace) noreturn {
pub fn panic(msg: []const u8, error_return_trace: ?*std.builtin.StackTrace, ret_addr: ?usize) noreturn {
_ = error_return_trace;
_ = ret_addr;
js.machPanic(msg.ptr, msg.len);
unreachable;
}