LibJS+LibWeb: Add fast_is<T> helpers for Realm::HostDefined class family

This commit is contained in:
Andreas Kling 2025-04-18 10:24:45 +02:00 committed by Andreas Kling
commit f35069d63b
Notes: github-actions[bot] 2025-04-18 12:47:43 +00:00
4 changed files with 18 additions and 4 deletions

View file

@ -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>