mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-09 17:44:56 +09:00
LibJS: Mark a call to DetachArrayBuffer as infallible
Noticed while looking at the merged ArrayBuffer transfer proposal.
This commit is contained in:
parent
bf3e7d3ac4
commit
caf1606c9f
Notes:
github-actions[bot]
2024-08-20 16:25:43 +00:00
Author: https://github.com/trflynn89
Commit: caf1606c9f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1141
1 changed files with 1 additions and 1 deletions
|
@ -231,7 +231,7 @@ ThrowCompletionOr<ArrayBuffer*> array_buffer_copy_and_detach(VM& vm, ArrayBuffer
|
|||
copy_data_block_bytes(new_buffer->buffer(), 0, array_buffer.buffer(), 0, copy_length);
|
||||
|
||||
// 15. Perform ! DetachArrayBuffer(arrayBuffer).
|
||||
TRY(detach_array_buffer(vm, array_buffer));
|
||||
MUST(detach_array_buffer(vm, array_buffer));
|
||||
|
||||
// 16. Return newBuffer.
|
||||
return new_buffer;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue