Update src/browser/js/Env.zig

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

View File

@@ -81,7 +81,7 @@ pub fn init(allocator: Allocator, platform: *const Platform, snapshot: *Snapshot
isolate.setHostInitializeImportMetaObjectCallback(Context.metaObjectCallback);
// // Allocate templates array dynamically to avoid comptime dependency on JsApis.len
// Allocate templates array dynamically to avoid comptime dependency on JsApis.len
const templates = try allocator.alloc(v8.FunctionTemplate, JsApis.len);
errdefer allocator.free(templates);