mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-04 21:40:33 +00:00
LibWeb: Use move on ByteBuffer in TransferArrayBuffer
This commit is contained in:
parent
446a78f30e
commit
25f8b80eab
Notes:
sideshowbarker
2024-07-17 05:23:40 +09:00
Author: https://github.com/shannonbooth Commit: https://github.com/SerenityOS/serenity/commit/25f8b80eab Pull-request: https://github.com/SerenityOS/serenity/pull/21983
1 changed files with 1 additions and 1 deletions
|
@ -1664,7 +1664,7 @@ WebIDL::ExceptionOr<JS::NonnullGCPtr<JS::ArrayBuffer>> transfer_array_buffer(JS:
|
|||
TRY(JS::detach_array_buffer(vm, buffer));
|
||||
|
||||
// 5. Return a new ArrayBuffer object, created in the current Realm, whose [[ArrayBufferData]] internal slot value is arrayBufferData and whose [[ArrayBufferByteLength]] internal slot value is arrayBufferByteLength.
|
||||
return JS::ArrayBuffer::create(realm, array_buffer);
|
||||
return JS::ArrayBuffer::create(realm, move(array_buffer));
|
||||
}
|
||||
|
||||
// https://streams.spec.whatwg.org/#abstract-opdef-readablebytestreamcontrollerenqueuedetachedpullintotoqueue
|
||||
|
|
Loading…
Reference in a new issue