| 
									
										
										
										
											2021-09-08 21:34:27 -04:00
										 |  |  | /*
 | 
					
						
							|  |  |  |  * 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 NumberFormatConstructor final : public NativeFunction { | 
					
						
							|  |  |  |     JS_OBJECT(NumberFormatConstructor, NativeFunction); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | public: | 
					
						
							|  |  |  |     explicit NumberFormatConstructor(GlobalObject&); | 
					
						
							|  |  |  |     virtual void initialize(GlobalObject&) override; | 
					
						
							|  |  |  |     virtual ~NumberFormatConstructor() override = default; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     virtual Value call() override; | 
					
						
							|  |  |  |     virtual Value construct(FunctionObject& new_target) override; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | private: | 
					
						
							|  |  |  |     virtual bool has_constructor() const override { return true; } | 
					
						
							| 
									
										
										
										
											2021-09-10 11:12:05 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  |     JS_DECLARE_NATIVE_FUNCTION(supported_locales_of); | 
					
						
							| 
									
										
										
										
											2021-09-08 21:34:27 -04:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | } |