Skip to content

Commit 71b5dc2

Browse files
authored
Merge pull request #731 from lightpanda-io/minor_chores
Update zig-v8-fork + zig fmt fix
2 parents 5909ab7 + ab45b42 commit 71b5dc2

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

build.zig.zon

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
.hash = "tigerbeetle_io-0.0.0-ViLgxpyRBAB5BMfIcj3KMXfbJzwARs9uSl8aRy2OXULd",
1414
},
1515
.v8 = .{
16-
.url = "https://github.com/lightpanda-io/zig-v8-fork/archive/e38cb27ddb044c6afbf8a938b293721b9804405e.tar.gz",
17-
.hash = "v8-0.0.0-xddH6_GzAwCaz83JWuw3sepOGq0I7C_CmfOwA1Gb9q3y",
16+
.url = "https://github.com/lightpanda-io/zig-v8-fork/archive/faab44996a5cb74c71592bda404208fde4bf2e63.tar.gz",
17+
.hash = "v8-0.0.0-xddH6xWyAwB_NFICSO4Q3O-c7gDKnYiwky5FhQzTZMIr",
1818
},
1919
//.v8 = .{ .path = "../zig-v8-fork" },
2020
//.tigerbeetle_io = .{ .path = "../tigerbeetle-io" },

src/browser/netsurf.zig

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2133,7 +2133,11 @@ pub inline fn documentCreateAttributeNS(doc: *Document, ns: []const u8, qname: [
21332133
return attr.?;
21342134
}
21352135

2136-
pub fn documentSetScriptAddedCallback(doc: *Document, ctx: *anyopaque, callback: c.dom_script_added_callback,) void {
2136+
pub fn documentSetScriptAddedCallback(
2137+
doc: *Document,
2138+
ctx: *anyopaque,
2139+
callback: c.dom_script_added_callback,
2140+
) void {
21372141
c._dom_document_set_script_added_callback(doc, ctx, callback);
21382142
}
21392143

src/browser/page.zig

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,6 @@ pub const Page = struct {
392392
};
393393
}
394394

395-
396395
// evalScript evaluates the src in priority.
397396
// if no src is present, we evaluate the text source.
398397
// https://html.spec.whatwg.org/multipage/scripting.html#script-processing-model
@@ -401,7 +400,7 @@ pub const Page = struct {
401400
try parser.documentHTMLSetCurrentScript(html_doc, @ptrCast(script.element));
402401

403402
defer parser.documentHTMLSetCurrentScript(html_doc, null) catch |err| {
404-
log.err(.page, "clear document script", .{.err = err});
403+
log.err(.page, "clear document script", .{ .err = err });
405404
};
406405

407406
const src = script.src orelse {
@@ -721,7 +720,7 @@ fn timestamp() u32 {
721720
// immediately.
722721
pub export fn scriptAddedCallback(ctx: ?*anyopaque, element: ?*parser.Element) callconv(.C) void {
723722
var script = Script.init(element.?) catch |err| {
724-
log.warn(.page, "script added init error", .{.err = err});
723+
log.warn(.page, "script added init error", .{ .err = err });
725724
return;
726725
} orelse return;
727726

0 commit comments

Comments
 (0)