mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
Make this function inline
This commit is contained in:
@@ -3224,7 +3224,7 @@ pub const JSValue = enum(JSValueReprInt) {
|
||||
};
|
||||
}
|
||||
|
||||
pub fn isObject(this: JSType) bool {
|
||||
pub inline fn isObject(this: JSType) bool {
|
||||
// inline constexpr bool isObjectType(JSType type) { return type >= ObjectType; }
|
||||
return @intFromEnum(this) >= @intFromEnum(JSType.Object);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user