We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f11ada2 + 0d19781 commit 16a8785Copy full SHA for 16a8785
src/v8.zig
@@ -837,6 +837,10 @@ pub const FunctionTemplate = struct {
837
pub fn setReadOnlyPrototype(self: Self) void {
838
c.v8__FunctionTemplate__ReadOnlyPrototype(self.handle);
839
}
840
+
841
+ pub fn setAccessorGetter(self: Self, name: Name, getter: FunctionTemplate) void {
842
+ c.v8__Template__SetAccessorProperty__DEFAULT(@ptrCast(self.handle), name.handle, getter.handle);
843
+ }
844
};
845
846
pub const Function = struct {
0 commit comments