diff options
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Intl/LocaleConstructor.h')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/Intl/LocaleConstructor.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Intl/LocaleConstructor.h b/Userland/Libraries/LibJS/Runtime/Intl/LocaleConstructor.h new file mode 100644 index 0000000000..f7e5d68c9e --- /dev/null +++ b/Userland/Libraries/LibJS/Runtime/Intl/LocaleConstructor.h @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2021, Tim Flynn <trflynn89@pm.me> + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#pragma once + +#include <LibJS/Runtime/NativeFunction.h> + +namespace JS::Intl { + +class LocaleConstructor final : public NativeFunction { + JS_OBJECT(LocaleConstructor, NativeFunction); + +public: + explicit LocaleConstructor(GlobalObject&); + virtual void initialize(GlobalObject&) override; + virtual ~LocaleConstructor() override = default; + + virtual Value call() override; + virtual Value construct(FunctionObject& new_target) override; + +private: + virtual bool has_constructor() const override { return true; } +}; + +} |