Make this function inline

This commit is contained in:
Jarred Sumner
2023-09-22 21:26:35 -07:00
parent 966b636e5d
commit a229cfd3c6

View File

@@ -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);
}