mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 19:08:50 +00:00
u16 isn't big enough
This commit is contained in:
@@ -1443,10 +1443,14 @@ pub const JSValue = enum(i64) {
|
||||
});
|
||||
}
|
||||
|
||||
pub inline fn toU16(this: JSValue) u36 {
|
||||
pub inline fn toU16(this: JSValue) u16 {
|
||||
return @intCast(u16, this.toInt32());
|
||||
}
|
||||
|
||||
pub inline fn toU32(this: JSValue) u32 {
|
||||
return @intCast(u32, this.toInt32());
|
||||
}
|
||||
|
||||
pub fn getLengthOfArray(this: JSValue, globalThis: *JSGlobalObject) u32 {
|
||||
return cppFn("getLengthOfArray", .{
|
||||
this,
|
||||
|
||||
Reference in New Issue
Block a user