mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibJS: Convert ArrayBuffer::create() to NonnullGCPtr
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 03:18:45 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/947ea92bf6 Pull-request: https://github.com/SerenityOS/serenity/pull/16479 Reviewed-by: https://github.com/davidot ✅
@@ -25,9 +25,9 @@ class ArrayBuffer : public Object {
|
||||
JS_OBJECT(ArrayBuffer, Object);
|
||||
|
||||
public:
|
||||
static ThrowCompletionOr<ArrayBuffer*> create(Realm&, size_t);
|
||||
static ArrayBuffer* create(Realm&, ByteBuffer);
|
||||
static ArrayBuffer* create(Realm&, ByteBuffer*);
|
||||
static ThrowCompletionOr<NonnullGCPtr<ArrayBuffer>> create(Realm&, size_t);
|
||||
static NonnullGCPtr<ArrayBuffer> create(Realm&, ByteBuffer);
|
||||
static NonnullGCPtr<ArrayBuffer> create(Realm&, ByteBuffer*);
|
||||
|
||||
virtual ~ArrayBuffer() override = default;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user