mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-05 09:06:08 +00:00
LibWeb: Implement Structured{De}SerializeWithTransfer for transferables
This first cut at these APIs only works for platform objects that implement the Transferable interface from Bindings.
This commit is contained in:
parent
e21d1078a0
commit
bab9e75a96
Notes:
sideshowbarker
2024-07-17 18:46:57 +09:00
Author: https://github.com/ADKaster
Commit: bab9e75a96
Pull-request: https://github.com/SerenityOS/serenity/pull/22203
4 changed files with 181 additions and 1 deletions
|
@ -27,4 +27,9 @@ void Intrinsics::visit_edges(JS::Cell::Visitor& visitor)
|
|||
visitor.visit(m_realm);
|
||||
}
|
||||
|
||||
bool Intrinsics::is_exposed(StringView name) const
|
||||
{
|
||||
return m_constructors.contains(name) || m_prototypes.contains(name) || m_namespaces.contains(name);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue