Lightpanda: the headless browser designed for AI and automation
`Caller`: don't get into handle scope twice
Halil Duraka6c4d680bf57
diff --git a/src/browser/js/Caller.zig b/src/browser/js/Caller.zigindex aae31a36a..4e0527996 100644--- a/src/browser/js/Caller.zig+++ b/src/browser/js/Caller.zig@@ -148,10 +148,6 @@ pub const CallOpts = struct {pub fn constructor(self: *Caller, comptime T: type, func: anytype, handle: *const v8.FunctionCallbackInfo, comptime opts: CallOpts) void {const local = &self.local;- var hs: js.HandleScope = undefined;- hs.init(local.isolate);- defer hs.deinit();-const info = FunctionCallbackInfo{ .handle = handle };if (!info.isConstructCall()) {@@ -861,10 +857,6 @@ pub const Function = struct {}const info = FunctionCallbackInfo{ .handle = info_handle };- var hs: js.HandleScope = undefined;- hs.initWithIsolateHandle(v8_isolate);- defer hs.deinit();-var cache_state: CacheState = undefined;if (comptime opts.cache) |cache| {// This API is a bit weird. On