/* * Copyright (c) 2021, Idan Horowitz * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include #include namespace JS { class Set : public Object { JS_OBJECT(Set, Object); public: static Set* create(GlobalObject&); explicit Set(Object& prototype); virtual ~Set() override; OrderedHashTable const& values() const { return m_values; }; OrderedHashTable& values() { return m_values; }; private: virtual void visit_edges(Visitor& visitor) override; OrderedHashTable m_values; }; }