mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-22 12:44:43 +00:00
mcp: ignore unknown json fields and improve error reporting
This commit is contained in:
@@ -24,8 +24,7 @@ pub fn processRequests(server: *Server) !void {
|
||||
|
||||
if (msg.len == 0) continue;
|
||||
|
||||
// Critical: Per-request Arena
|
||||
var arena = std.heap.ArenaAllocator.init(server.allocator);
|
||||
var arena: std.heap.ArenaAllocator = .init(server.allocator);
|
||||
defer arena.deinit();
|
||||
|
||||
handleMessage(server, arena.allocator(), msg) catch |err| {
|
||||
|
||||
Reference in New Issue
Block a user