fn stepUpdateMessage(msg_bytes: []u8) Allocator.Error!void
fn stepUpdateMessage(msg_bytes: []u8) Allocator.Error!void { if (msg_bytes.len < @sizeOf(abi.StepUpdate)) @panic("malformed StepUpdate message"); const msg: *const abi.StepUpdate = @ptrCast(msg_bytes[0..@sizeOf(abi.StepUpdate)]); if (msg.step_idx >= step_list.len) @panic("malformed StepUpdate message"); step_list[msg.step_idx].status = msg.bits.status; js.updateStepStatus(msg.step_idx); }