mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 01:51:03 +09:00
LibJS: Convert ArrayBuffer::create() to NonnullGCPtr
This commit is contained in:
parent
91b0123eaf
commit
947ea92bf6
Notes:
sideshowbarker
2024-07-17 03:18:45 +09:00
Author: https://github.com/linusg
Commit: 947ea92bf6
Pull-request: https://github.com/SerenityOS/serenity/pull/16479
Reviewed-by: https://github.com/davidot ✅
7 changed files with 15 additions and 15 deletions
|
@ -266,7 +266,7 @@ JS::Promise* Blob::array_buffer()
|
|||
promise->reject(buffer_result.release_error().value().release_value());
|
||||
return promise;
|
||||
}
|
||||
auto* buffer = buffer_result.release_value();
|
||||
auto buffer = buffer_result.release_value();
|
||||
buffer->buffer().overwrite(0, m_byte_buffer.data(), m_byte_buffer.size());
|
||||
|
||||
// 4. Return the result of transforming promise by a fulfillment handler that returns a new ArrayBuffer whose contents are its first argument.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue