/* * Copyright (c) 2021, Idan Horowitz * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include namespace JS { class WeakSetConstructor final : public NativeFunction { JS_OBJECT(WeakSetConstructor, NativeFunction); public: explicit WeakSetConstructor(GlobalObject&); virtual void initialize(GlobalObject&) override; virtual ~WeakSetConstructor() override; virtual Value call() override; virtual Value construct(Function&) override; private: virtual bool has_constructor() const override { return true; } }; }