Skip to content

Commit

Permalink
LibWeb: Add const qualified BufferableObjectBase::raw_object
Browse files Browse the repository at this point in the history
  • Loading branch information
shannonbooth authored and awesomekling committed May 26, 2024
1 parent 67b1f4a commit 848d6f5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Userland/Libraries/LibWeb/WebIDL/Buffers.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ class BufferableObjectBase : public JS::Cell {
u32 byte_length() const;

JS::NonnullGCPtr<JS::Object> raw_object();
JS::NonnullGCPtr<JS::Object const> raw_object() const { return const_cast<BufferableObjectBase&>(*this).raw_object(); }

JS::GCPtr<JS::ArrayBuffer> viewed_array_buffer();

BufferableObject const& bufferable_object() const { return m_bufferable_object; }
Expand Down

0 comments on commit 848d6f5

Please sign in to comment.