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:
Timothy Flynn 2025-04-17 08:57:55 -04:00 committed by Tim Flynn
parent 0c309d4660
commit 5eab109d85
Notes: github-actions[bot] 2025-04-17 17:47:42 +00:00
4 changed files with 9 additions and 8 deletions

View file

@ -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());