mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-27 11:24:16 +00:00
29 lines
654 B
C
29 lines
654 B
C
|
|
/*
|
||
|
|
* Copyright (c) 2021, Linus Groh <linusg@serenityos.org>
|
||
|
|
*
|
||
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
||
|
|
*/
|
||
|
|
|
||
|
|
#pragma once
|
||
|
|
|
||
|
|
#include <LibJS/Runtime/NativeFunction.h>
|
||
|
|
|
||
|
|
namespace JS::Temporal {
|
||
|
|
|
||
|
|
class TimeZoneConstructor final : public NativeFunction {
|
||
|
|
JS_OBJECT(TimeZoneConstructor, NativeFunction);
|
||
|
|
|
||
|
|
public:
|
||
|
|
explicit TimeZoneConstructor(GlobalObject&);
|
||
|
|
virtual void initialize(GlobalObject&) override;
|
||
|
|
virtual ~TimeZoneConstructor() override = default;
|
||
|
|
|
||
|
|
virtual Value call() override;
|
||
|
|
virtual Value construct(FunctionObject& new_target) override;
|
||
|
|
|
||
|
|
private:
|
||
|
|
virtual bool has_constructor() const override { return true; }
|
||
|
|
};
|
||
|
|
|
||
|
|
}
|