1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 12:48:10 +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:
Idan Horowitz 2021-06-11 00:59:24 +03:00 committed by Linus Groh
parent a64089092f
commit f5a978c1aa
3 changed files with 13 additions and 1 deletions

View file

@ -37,4 +37,10 @@ ArrayBuffer::~ArrayBuffer()
{
}
void ArrayBuffer::visit_edges(Cell::Visitor& visitor)
{
Object::visit_edges(visitor);
visitor.visit(m_detach_key);
}
}