mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:47:34 +00:00
LibWeb: Remove now-unneeded TypedArray OOM propagation
No longer throws after abcf71a8ca
.
This commit is contained in:
parent
a1c8fb10fa
commit
3fcb07597b
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ ErrorOr<ByteBuffer> get_buffer_source_copy(JS::Object const& buffer_source)
|
||||||
|
|
||||||
// 9. For i in the range offset to offset + length − 1, inclusive, set bytes[i − offset] to ! GetValueFromBuffer(esArrayBuffer, i, Uint8, true, Unordered).
|
// 9. For i in the range offset to offset + length − 1, inclusive, set bytes[i − offset] to ! GetValueFromBuffer(esArrayBuffer, i, Uint8, true, Unordered).
|
||||||
for (u64 i = offset; i < offset + length; ++i) {
|
for (u64 i = offset; i < offset + length; ++i) {
|
||||||
auto value = es_array_buffer->get_value<u8>(i, true, JS::ArrayBuffer::Unordered).release_allocated_value_but_fixme_should_propagate_errors();
|
auto value = es_array_buffer->get_value<u8>(i, true, JS::ArrayBuffer::Unordered);
|
||||||
bytes[i - offset] = static_cast<u8>(value.as_double());
|
bytes[i - offset] = static_cast<u8>(value.as_double());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue