Skip to content

Commit 92ebb8c

Browse files
committed
add cookie_jar to wpt script
1 parent 32a6ad3 commit 92ebb8c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/wpt/run.zig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,15 @@ pub fn run(arena: *std.heap.ArenaAllocator, comptime dir: []const u8, f: []const
5858
var http_client = try HttpClient.init(alloc, 2);
5959
defer http_client.deinit();
6060

61+
var cookie_jar = storage.CookieJar.init(alloc);
62+
defer cookie_jar.deinit();
63+
6164
var js_env: Env = undefined;
6265
Env.init(&js_env, alloc, &loop, UserContext{
6366
.document = html_doc,
67+
.cookie_jar = &cookie_jar,
6468
.http_client = &http_client,
69+
.uri = try std.Uri.parse("https://lightpanda.io"),
6570
});
6671
defer js_env.deinit();
6772

0 commit comments

Comments
 (0)