mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-29 04:37:55 +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
@@ -5397,7 +5397,7 @@ WebIDL::ExceptionOr<JS::Value> structured_clone(JS::Realm& realm, JS::Value valu
|
||||
auto serialized = TRY(HTML::structured_serialize(vm, value));
|
||||
|
||||
// 2. Return ? StructuredDeserialize(serialized, the current Realm).
|
||||
return TRY(HTML::structured_deserialize(vm, serialized, realm, {}));
|
||||
return TRY(HTML::structured_deserialize(vm, serialized, realm));
|
||||
}
|
||||
|
||||
// https://streams.spec.whatwg.org/#close-sentinel
|
||||
|
||||
Reference in New Issue
Block a user