browser: panic if callInspector without Inspector

Signed-off-by: Francis Bouvier <francis@lightpanda.io>
This commit is contained in:
Francis Bouvier
2024-10-09 12:47:14 +02:00
parent fa4920bd94
commit 28593d93ff

View File

@@ -152,6 +152,8 @@ pub const Session = struct {
pub fn callInspector(self: *Session, msg: []const u8) void {
if (self.inspector) |inspector| {
inspector.send(msg, self.env);
} else {
@panic("No Inspector");
}
}