aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-09-22 21:26:35 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-09-22 21:26:35 -0700
commita229cfd3c6884434bdf0ce774ecefa083a5bb29b (patch)
tree4c4018c58f6fe6ea8b49cc272ec84ff783692458 /src/bun.js
parent966b636e5d2026bf535a85860895fab2c004dac1 (diff)
downloadbun-a229cfd3c6884434bdf0ce774ecefa083a5bb29b.tar.gz
bun-a229cfd3c6884434bdf0ce774ecefa083a5bb29b.tar.zst
bun-a229cfd3c6884434bdf0ce774ecefa083a5bb29b.zip
Make this function inline
Diffstat (limited to 'src/bun.js')
-rw-r--r--src/bun.js/bindings/bindings.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bun.js/bindings/bindings.zig b/src/bun.js/bindings/bindings.zig
index 3a0b369e9..6c1e11e34 100644
--- a/src/bun.js/bindings/bindings.zig
+++ b/src/bun.js/bindings/bindings.zig
@@ -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);
}