mirror of
https://github.com/oven-sh/bun
synced 2026-02-15 21:32:05 +00:00
fromJSHostCallVoid
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user