LibWeb: Respect subarrays in TextEncoder::encode_into

This is the method that Figma uses to write strings into Wasm memory,
using subarrays to select a particular Wasm memory address to write to.
This commit is contained in:
Luke Wilde 2025-01-09 16:30:30 +00:00 committed by Andreas Kling
commit 3ab93667f5
Notes: github-actions[bot] 2025-01-21 20:38:39 +00:00
3 changed files with 10 additions and 10 deletions

View file

@ -27,6 +27,7 @@ public:
virtual ~BufferableObjectBase() override = default;
u32 byte_length() const;
u32 byte_offset() const;
u32 element_size() const;
GC::Ref<JS::Object> raw_object();
@ -69,7 +70,6 @@ public:
using BufferableObjectBase::is_data_view;
using BufferableObjectBase::is_typed_array_base;
u32 byte_offset() const;
void write(ReadonlyBytes, u32 starting_offset = 0);
};