LibWeb: Use interface_name instead of serialize_type virtual

`interface_name` is implemented for every platform object,
so we no longer need this boilerplate for every serializable
platform object.
This commit is contained in:
Shannon Booth 2025-07-18 16:14:26 +12:00 committed by Shannon Booth
parent 4d64f21fa5
commit 6a9cd0e8e0
Notes: github-actions[bot] 2026-02-14 19:36:00 +00:00
17 changed files with 1 additions and 24 deletions

View file

@ -444,7 +444,7 @@ public:
// 2. Let typeString be the identifier of the primary interface of value.
// 3. Set serialized to { [[Type]]: typeString }.
serialized.encode(ValueTag::SerializableObject);
serialized.encode(serializable->serialize_type());
serialized.encode(as<Bindings::PlatformObject>(serializable)->interface_name());
// 4. Set deep to true
deep = true;