1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 04:38:11 +00:00

LibWeb: Move serialization of serializable object's interface name

To be consistent with the deserialization steps, move serialization of
the serializable object's interface name out of the serialization steps.
This commit is contained in:
Kenneth Myhra 2024-03-02 22:32:50 +01:00 committed by Andrew Kaster
parent 4751ab9f0b
commit cd0302426f
3 changed files with 2 additions and 4 deletions

View file

@ -306,6 +306,8 @@ public:
m_serialized.append(ValueTag::SerializableObject);
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));
}