mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 14:17:45 +00:00
LibJS: Convert to_bigint_uint64() to ThrowCompletionOr
This commit is contained in:
parent
df181809fd
commit
51c33b3b35
3 changed files with 4 additions and 4 deletions
|
@ -160,7 +160,7 @@ static ByteBuffer numeric_to_raw_bytes(GlobalObject& global_object, Value value,
|
|||
if constexpr (IsSigned<UnderlyingBufferDataType>)
|
||||
int_value = MUST(value.to_bigint_int64(global_object));
|
||||
else
|
||||
int_value = value.to_bigint_uint64(global_object);
|
||||
int_value = MUST(value.to_bigint_uint64(global_object));
|
||||
|
||||
ReadonlyBytes { &int_value, sizeof(UnderlyingBufferDataType) }.copy_to(raw_bytes);
|
||||
flip_if_needed();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue