mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-03 14:50:02 +00:00
LibJS+LibWeb: Add fast_is<T> helpers for Realm::HostDefined class family
This commit is contained in:
parent
a9e415b3c4
commit
f35069d63b
Notes:
github-actions[bot]
2025-04-18 12:47:43 +00:00
Author: https://github.com/awesomekling
Commit: f35069d63b
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4395
4 changed files with 18 additions and 4 deletions
|
@ -30,6 +30,12 @@ public:
|
|||
virtual ~HostDefined() = default;
|
||||
|
||||
virtual void visit_edges(Cell::Visitor&) { }
|
||||
|
||||
template<typename T>
|
||||
bool fast_is() const = delete;
|
||||
|
||||
virtual bool is_principal_host_defined() const { return false; }
|
||||
virtual bool is_synthetic_host_defined() const { return false; }
|
||||
};
|
||||
|
||||
template<typename T, typename... Args>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue