zig fmt, remove unused code

This commit is contained in:
Karl Seguin
2026-01-24 07:37:30 +08:00
parent d1e7f46994
commit 830f759f0b
11 changed files with 11 additions and 35 deletions

View File

@@ -190,7 +190,7 @@ fn createIsolatedWorld(cmd: anytype) !void {
const world = try bc.createIsolatedWorld(params.worldName, params.grantUniveralAccess);
const page = bc.session.currentPage() orelse return error.PageNotLoaded;
try world.createContextAndLoadPolyfills(page);
try world.createContext(page);
const js_context = &world.executor.context.?;
// Create the auxdata json for the contextCreated event
@@ -292,7 +292,7 @@ pub fn pageRemove(bc: anytype) !void {
pub fn pageCreated(bc: anytype, page: *Page) !void {
for (bc.isolated_worlds.items) |*isolated_world| {
try isolated_world.createContextAndLoadPolyfills(page);
try isolated_world.createContext(page);
}
}