1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 12:27:34 +00:00

LibJS: Convert to_bigint_uint64() to ThrowCompletionOr

This commit is contained in:
Idan Horowitz 2021-10-16 22:01:10 +03:00 committed by Linus Groh
parent df181809fd
commit 51c33b3b35
3 changed files with 4 additions and 4 deletions

View file

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