/* * Copyright (c) 2021, Idan Horowitz * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include namespace JS { class WeakSetPrototype final : public PrototypeObject { JS_PROTOTYPE_OBJECT(WeakSetPrototype, WeakSet, WeakSet); GC_DECLARE_ALLOCATOR(WeakSetPrototype); public: virtual void initialize(Realm&) override; virtual ~WeakSetPrototype() override = default; private: explicit WeakSetPrototype(Realm&); JS_DECLARE_NATIVE_FUNCTION(add); JS_DECLARE_NATIVE_FUNCTION(delete_); JS_DECLARE_NATIVE_FUNCTION(has); }; }