Skip to content

Commit 28593d9

Browse files
browser: panic if callInspector without Inspector
Signed-off-by: Francis Bouvier <[email protected]>
1 parent fa4920b commit 28593d9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/browser/browser.zig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ pub const Session = struct {
152152
pub fn callInspector(self: *Session, msg: []const u8) void {
153153
if (self.inspector) |inspector| {
154154
inspector.send(msg, self.env);
155+
} else {
156+
@panic("No Inspector");
155157
}
156158
}
157159

0 commit comments

Comments
 (0)