mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 07:03:29 +00:00
server: panic if sendInspector without an inspector
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
This commit is contained in:
@@ -315,7 +315,7 @@ pub const Ctx = struct {
|
|||||||
pub fn sendInspector(self: *Ctx, msg: []const u8) void {
|
pub fn sendInspector(self: *Ctx, msg: []const u8) void {
|
||||||
if (self.env().getInspector()) |inspector| {
|
if (self.env().getInspector()) |inspector| {
|
||||||
inspector.send(self.env(), msg);
|
inspector.send(self.env(), msg);
|
||||||
}
|
} else @panic("Inspector has not been set");
|
||||||
}
|
}
|
||||||
|
|
||||||
inline fn inspectorCtx(ctx_opaque: *anyopaque) *Ctx {
|
inline fn inspectorCtx(ctx_opaque: *anyopaque) *Ctx {
|
||||||
|
|||||||
Reference in New Issue
Block a user