Update src/browser/js/ExecutionWorld.zig

Co-authored-by: Pierre Tachoire <pierre@lightpanda.io>
This commit is contained in:
Karl Seguin
2025-12-22 16:44:55 +08:00
committed by GitHub
parent 4c1d82162f
commit 3ab09d87f2

View File

@@ -84,7 +84,7 @@ pub fn createContext(self: *ExecutionWorld, page: *Page, enter: bool) !*Context
if (comptime IS_DEBUG) {
// Getting this into the snapshot is tricky (anything involving the
// global is tricky). Easier to do here, and in debug more, we're
// find with paying the small perf hit.
// fine with paying the small perf hit.
const js_global = v8.FunctionTemplate.initDefault(isolate);
const global_template = js_global.getInstanceTemplate();