enable conditionnal loading for polyfill

This commit is contained in:
Pierre Tachoire
2025-07-05 16:45:01 -07:00
parent 300428ddfb
commit 941dace7f9
9 changed files with 93 additions and 29 deletions

View File

@@ -284,9 +284,6 @@ pub fn pageCreated(bc: anytype, page: *Page) !void {
if (bc.isolated_world) |*isolated_world| {
// We need to recreate the isolated world context
try isolated_world.createContext(page);
const polyfill = @import("../../browser/polyfill/polyfill.zig");
try polyfill.load(bc.arena, &isolated_world.executor.js_context.?);
}
}