Update src/browser/js/Env.zig

Co-authored-by: Pierre Tachoire <pierre@lightpanda.io>
This commit is contained in:
Karl Seguin
2026-02-21 07:02:21 +08:00
committed by GitHub
parent 71d34592d9
commit 924eb33b3f

View File

@@ -175,7 +175,7 @@ pub fn init(app: *App, opts: InitOpts) !Env {
.data = null, .data = null,
.flags = v8.kOnlyInterceptStrings | v8.kNonMasking, .flags = v8.kOnlyInterceptStrings | v8.kNonMasking,
}); });
// I don' 100% understand this. We actually set this up in the snapshot, // I don't 100% understand this. We actually set this up in the snapshot,
// but for the global instance, it doesn't work. SetIndexedHandler and // but for the global instance, it doesn't work. SetIndexedHandler and
// SetNamedHandler are set on the Instance template, and that's the key // SetNamedHandler are set on the Instance template, and that's the key
// difference. The context has its own global instance, so we need to set // difference. The context has its own global instance, so we need to set