mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-03 01:38:52 +00:00
LibWeb: Update structured deserialization to accept its target realm
This is a formal parameter to this AO in the spec.
This commit is contained in:
parent
0c309d4660
commit
5eab109d85
Notes:
github-actions[bot]
2025-04-17 17:47:42 +00:00
Author: https://github.com/trflynn89
Commit: 5eab109d85
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4386
4 changed files with 9 additions and 8 deletions
|
@ -1319,9 +1319,9 @@ static WebIDL::ExceptionOr<GC::Ref<Bindings::PlatformObject>> create_transferred
|
|||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/structured-data.html#structureddeserializewithtransfer
|
||||
WebIDL::ExceptionOr<DeserializedTransferRecord> structured_deserialize_with_transfer(JS::VM& vm, SerializedTransferRecord& serialize_with_transfer_result)
|
||||
WebIDL::ExceptionOr<DeserializedTransferRecord> structured_deserialize_with_transfer(SerializedTransferRecord& serialize_with_transfer_result, JS::Realm& target_realm)
|
||||
{
|
||||
auto& target_realm = *vm.current_realm();
|
||||
auto& vm = target_realm.vm();
|
||||
|
||||
// 1. Let memory be an empty map.
|
||||
auto memory = DeserializationMemory(vm.heap());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue