We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c7e648 commit 7da2259Copy full SHA for 7da2259
src/v8.zig
@@ -936,6 +936,13 @@ pub fn Persistent(comptime T: type) type {
936
};
937
}
938
939
+ /// Should only be called if you know the underlying type is a v8.Module.
940
+ pub fn castToModule(self: Self) Module {
941
+ return .{
942
+ .handle = @as(*const c.Module, @ptrCast(self.handle)),
943
+ };
944
+ }
945
+
946
/// Should only be called if you know the underlying type is a v8.PromiseResolver.
947
pub fn castToPromiseResolver(self: Self) PromiseResolver {
948
return .{
0 commit comments