|
@@ -178,7 +178,7 @@ static ByteBuffer numeric_to_raw_bytes(GlobalObject& global_object, Value value,
|
|
if constexpr (sizeof(UnderlyingBufferDataType) == 4)
|
|
if constexpr (sizeof(UnderlyingBufferDataType) == 4)
|
|
int_value = MUST(value.to_u32(global_object));
|
|
int_value = MUST(value.to_u32(global_object));
|
|
else if constexpr (sizeof(UnderlyingBufferDataType) == 2)
|
|
else if constexpr (sizeof(UnderlyingBufferDataType) == 2)
|
|
- int_value = value.to_u16(global_object);
|
|
|
|
|
|
+ int_value = MUST(value.to_u16(global_object));
|
|
else if constexpr (!IsSame<T, ClampedU8>)
|
|
else if constexpr (!IsSame<T, ClampedU8>)
|
|
int_value = value.to_u8(global_object);
|
|
int_value = value.to_u8(global_object);
|
|
else
|
|
else
|