mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 07:48:12 +00:00
LibWeb: Use move on ByteBuffer in TransferArrayBuffer
This commit is contained in:
parent
446a78f30e
commit
25f8b80eab
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…
Add table
Add a link
Reference in a new issue