load polyfills on creation

This commit is contained in:
sjorsdonkers
2025-05-02 11:04:55 +02:00
parent 8930e2f06e
commit cddc55694a
2 changed files with 4 additions and 5 deletions

View File

@@ -113,8 +113,9 @@ fn createIsolatedWorld(cmd: anytype) !void {
}
const bc = cmd.browser_context orelse return error.BrowserContextNotLoaded;
const world = try bc.createIsolatedWorld(params.worldName, params.grantUniveralAccess);
const page = bc.session.currentPage().?;
const world = try bc.createIsolatedWorld(page, params.worldName, params.grantUniveralAccess);
try pageCreated(bc, page);
const scope = world.scope.?;
// Create the auxdata json for the contextCreated event