mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibWeb: Add spec steps to StructuredSerialize
In preparation for serializing more types, let's move the implementation closer to the steps in the spec.
This commit is contained in:
parent
96600e77c2
commit
f3cf7496a1
Notes:
sideshowbarker
2024-07-16 22:24:48 +09:00
Author: https://github.com/ADKaster
Commit: f3cf7496a1
Pull-request: https://github.com/SerenityOS/serenity/pull/20703
2 changed files with 70 additions and 27 deletions
|
@ -21,7 +21,11 @@
|
|||
namespace Web::HTML {
|
||||
|
||||
using SerializationRecord = Vector<u32>;
|
||||
using SerializationMemory = HashMap<JS::Handle<JS::Value>, u32>;
|
||||
struct SerializationRange {
|
||||
u64 start = 0;
|
||||
u64 end = 0;
|
||||
};
|
||||
using SerializationMemory = HashMap<JS::Handle<JS::Value>, SerializationRange>;
|
||||
|
||||
WebIDL::ExceptionOr<SerializationRecord> structured_serialize(JS::VM& vm, JS::Value);
|
||||
WebIDL::ExceptionOr<SerializationRecord> structured_serialize_for_storage(JS::VM& vm, JS::Value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue