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