mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-30 15:41:48 +00:00
@@ -43,7 +43,9 @@ pub fn main() !void {
|
||||
|
||||
// document
|
||||
doc = try parser.documentHTMLParseFromFileAlloc(arena.allocator(), "test.html");
|
||||
defer parser.documentHTMLClose(doc);
|
||||
defer parser.documentHTMLClose(doc) catch |err| {
|
||||
std.debug.print("documentHTMLClose error: {s}\n", .{@errorName(err)});
|
||||
};
|
||||
|
||||
// create JS vm
|
||||
const vm = jsruntime.VM.init();
|
||||
|
||||
Reference in New Issue
Block a user