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:
Shannon Booth 2024-11-23 19:24:57 +13:00 committed by Andreas Kling
commit 9724c67be2
Notes: github-actions[bot] 2024-11-23 15:44:57 +00:00
8 changed files with 8 additions and 8 deletions

View file

@ -4388,7 +4388,7 @@ void Document::restore_the_history_object_state(GC::Ref<HTML::SessionHistoryEntr
// 2. Let state be StructuredDeserialize(entry's classic history API state, targetRealm). If this throws an exception, catch it and let state be null.
// 3. Set document's history object's state to state.
auto state_or_error = HTML::structured_deserialize(target_realm.vm(), entry->classic_history_api_state(), target_realm, {});
auto state_or_error = HTML::structured_deserialize(target_realm.vm(), entry->classic_history_api_state(), target_realm);
if (state_or_error.is_error())
m_history->set_state(JS::js_null());
else