LibWeb: Add SerializationMemory parameter to serialization_steps()

We want to bring with us the value of SerializationMemory to
Serializable::serialization_steps() when doing sub serialization.
This commit is contained in:
Kenneth Myhra 2024-03-10 19:13:45 +01:00 committed by Andreas Kling
commit 4669c1ba31
Notes: sideshowbarker 2024-07-16 22:14:49 +09:00
12 changed files with 12 additions and 12 deletions

View file

@ -315,7 +315,7 @@ public:
TRY(serialize_string(m_vm, m_serialized, serializable.interface_name()));
// 1. Perform the serialization steps for value's primary interface, given value, serialized, and forStorage.
TRY(serializable.serialization_steps(m_serialized, m_for_storage));
TRY(serializable.serialization_steps(m_serialized, m_for_storage, m_memory));
}
// 20. Otherwise, if value is a platform object, then throw a "DataCloneError" DOMException.