mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
LibWeb: Default initialize StructuredDeserialize memory argument
This is optional in the spec, so let's make it actually optional at the call site.
This commit is contained in:
committed by
Andreas Kling
parent
617b8eed75
commit
9724c67be2
@@ -135,7 +135,7 @@ WebIDL::ExceptionOr<JS::Value> NavigationHistoryEntry::get_state()
|
||||
// 2. Return StructuredDeserialize(this's session history entry's navigation API state). Rethrow any exceptions.
|
||||
// NOTE: This can in theory throw an exception, if attempting to deserialize a large ArrayBuffer
|
||||
// when not enough memory is available.
|
||||
return structured_deserialize(vm(), m_session_history_entry->navigation_api_state(), realm(), {});
|
||||
return structured_deserialize(vm(), m_session_history_entry->navigation_api_state(), realm());
|
||||
}
|
||||
|
||||
void NavigationHistoryEntry::set_ondispose(WebIDL::CallbackType* event_handler)
|
||||
|
||||
Reference in New Issue
Block a user