mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
LibWeb: Set a detach key for ArrayBuffers returned from WASM
As required by the specification: `Set buffer.[[ArrayBufferDetachKey]] to "WebAssembly.Memory".`
This commit is contained in:
parent
a64089092f
commit
f5a978c1aa
Notes:
sideshowbarker
2024-07-18 12:25:56 +09:00
Author: https://github.com/IdanHo
Commit: f5a978c1aa
Pull-request: https://github.com/SerenityOS/serenity/pull/7978
Reviewed-by: https://github.com/linusg
3 changed files with 13 additions and 1 deletions
|
@ -37,4 +37,10 @@ ArrayBuffer::~ArrayBuffer()
|
|||
{
|
||||
}
|
||||
|
||||
void ArrayBuffer::visit_edges(Cell::Visitor& visitor)
|
||||
{
|
||||
Object::visit_edges(visitor);
|
||||
visitor.visit(m_detach_key);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue