mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-02 22:55:23 +00:00
LibWeb/WebAssembly: Add missing visit of WebAssembly::Memory::m_buffer
This commit is contained in:
committed by
Ali Mohammad Pur
parent
aab5d4e6f9
commit
93ba99f14a
@@ -47,6 +47,12 @@ void Memory::initialize(JS::Realm& realm)
|
||||
WEB_SET_PROTOTYPE_FOR_INTERFACE_WITH_CUSTOM_NAME(Memory, WebAssembly.Memory);
|
||||
}
|
||||
|
||||
void Memory::visit_edges(Visitor& visitor)
|
||||
{
|
||||
Base::visit_edges(visitor);
|
||||
visitor.visit(m_buffer);
|
||||
}
|
||||
|
||||
// https://webassembly.github.io/spec/js-api/#dom-memory-grow
|
||||
WebIDL::ExceptionOr<u32> Memory::grow(u32 delta)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user