mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-02-04 14:33:47 +00:00
Remove unnecessary handlescope
There's one _always_ created immediately before it.
This commit is contained in:
@@ -149,10 +149,6 @@ pub fn method(self: *Caller, comptime T: type, func: anytype, handle: *const v8.
|
|||||||
|
|
||||||
fn _method(self: *Caller, comptime T: type, func: anytype, info: FunctionCallbackInfo, comptime opts: CallOpts) !void {
|
fn _method(self: *Caller, comptime T: type, func: anytype, info: FunctionCallbackInfo, comptime opts: CallOpts) !void {
|
||||||
const F = @TypeOf(func);
|
const F = @TypeOf(func);
|
||||||
var handle_scope: js.HandleScope = undefined;
|
|
||||||
handle_scope.init(self.local.isolate);
|
|
||||||
defer handle_scope.deinit();
|
|
||||||
|
|
||||||
var args = try self.getArgs(F, 1, info);
|
var args = try self.getArgs(F, 1, info);
|
||||||
@field(args, "0") = try TaggedOpaque.fromJS(*T, info.getThis());
|
@field(args, "0") = try TaggedOpaque.fromJS(*T, info.getThis());
|
||||||
const res = @call(.auto, func, args);
|
const res = @call(.auto, func, args);
|
||||||
|
|||||||
Reference in New Issue
Block a user