mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-02-04 14:33:47 +00:00
Update src/browser/js/ExecutionWorld.zig
Co-authored-by: Pierre Tachoire <pierre@lightpanda.io>
This commit is contained in:
@@ -84,7 +84,7 @@ pub fn createContext(self: *ExecutionWorld, page: *Page, enter: bool) !*Context
|
|||||||
if (comptime IS_DEBUG) {
|
if (comptime IS_DEBUG) {
|
||||||
// Getting this into the snapshot is tricky (anything involving the
|
// Getting this into the snapshot is tricky (anything involving the
|
||||||
// global is tricky). Easier to do here, and in debug more, we're
|
// 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 js_global = v8.FunctionTemplate.initDefault(isolate);
|
||||||
const global_template = js_global.getInstanceTemplate();
|
const global_template = js_global.getInstanceTemplate();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user