Merge pull request #717 from lightpanda-io/missing-t

Missing T
This commit is contained in:
Karl Seguin
2025-05-28 23:02:40 +08:00
committed by GitHub

View File

@@ -1267,7 +1267,7 @@ pub fn Env(comptime State: type, comptime WebApis: type) type {
return self.tryCallWithThis(T, self.getThis(), args, result);
}
pub fn tryCallWithThis(self: *const Function, comptime T: type, this: anytype, args: anytype, result: *Result) !void {
pub fn tryCallWithThis(self: *const Function, comptime T: type, this: anytype, args: anytype, result: *Result) !T {
var try_catch: TryCatch = undefined;
try_catch.init(self.scope);
defer try_catch.deinit();