From 753b2c997006fad2ba7e1920d7e8ac9a78458cff Mon Sep 17 00:00:00 2001 From: Pierre Tachoire Date: Tue, 3 Oct 2023 13:51:54 +0200 Subject: [PATCH] wpt: update parser.documentHTMLParse --- src/run_wpt.zig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/run_wpt.zig b/src/run_wpt.zig index 793b585f..71f0423f 100644 --- a/src/run_wpt.zig +++ b/src/run_wpt.zig @@ -92,8 +92,7 @@ fn runWPT(arena: *std.heap.ArenaAllocator, f: []const u8, libs: [][]const u8) !j const alloc = arena.allocator(); // document - var ff: []u8 = @constCast(f); - const htmldoc = parser.documentHTMLParse(ff); + const htmldoc = parser.documentHTMLParse(f); const doc = parser.documentHTMLToDocument(htmldoc); // create JS env