| 
									
										
										
										
											2021-08-07 22:40:32 +01:00
										 |  |  | /*
 | 
					
						
							|  |  |  |  * 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 PlainYearMonthConstructor final : public NativeFunction { | 
					
						
							|  |  |  |     JS_OBJECT(PlainYearMonthConstructor, NativeFunction); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | public: | 
					
						
							|  |  |  |     explicit PlainYearMonthConstructor(GlobalObject&); | 
					
						
							|  |  |  |     virtual void initialize(GlobalObject&) override; | 
					
						
							|  |  |  |     virtual ~PlainYearMonthConstructor() override = default; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     virtual Value call() override; | 
					
						
							|  |  |  |     virtual Value construct(FunctionObject& new_target) override; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | private: | 
					
						
							|  |  |  |     virtual bool has_constructor() const override { return true; } | 
					
						
							| 
									
										
										
										
											2021-09-09 05:06:46 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |     JS_DECLARE_NATIVE_FUNCTION(from); | 
					
						
							| 
									
										
										
										
											2021-08-07 22:40:32 +01:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | } |