fromJSHostCallVoid

This commit is contained in:
pfg
2025-06-30 13:36:03 -07:00
parent defbb4f74b
commit 6985f63fc3

View File

@@ -1106,13 +1106,9 @@ pub const JSValue = enum(i64) {
return ret;
}
extern fn JSC__JSValue__getClassName(this: JSValue, global: *JSGlobalObject, ret: *ZigString) void;
extern fn JSC__JSValue__getClassName(this: JSValue, global: *JSGlobalObject, ret: *ZigString) bool;
pub fn getClassName(this: JSValue, global: *JSGlobalObject, ret: *ZigString) bun.JSError!void {
var scope: bun.JSC.CatchScope = undefined;
scope.init(global, @src(), .assertions_only);
defer scope.deinit();
JSC__JSValue__getClassName(this, global, ret);
try scope.returnIfException();
JSC.fromJSHostCallVoid(global, @src(), JSC__JSValue__getClassName, .{ this, global, ret });
}
pub inline fn isCell(this: JSValue) bool {