diff options
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/WeakSetConstructor.h')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/WeakSetConstructor.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/WeakSetConstructor.h b/Userland/Libraries/LibJS/Runtime/WeakSetConstructor.h new file mode 100644 index 0000000000..0e3c5838ab --- /dev/null +++ b/Userland/Libraries/LibJS/Runtime/WeakSetConstructor.h @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2021, Idan Horowitz <idan.horowitz@serenityos.org> + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#pragma once + +#include <LibJS/Runtime/NativeFunction.h> + +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; } +}; + +} |