mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-26 02:52:35 +00:00 
			
		
		
		
	 2692db8699
			
		
	
	
		2692db8699
		
	
	
	
	
		
			
			Note that as of this commit, there aren't any such throwers, and the call site in Heap::allocate will drop exceptions on the floor. This commit only serves to change the declaration of the overrides, make sure they return an empty value, and to propagate OOM errors frm their base initialize invocations.
		
			
				
	
	
		
			24 lines
		
	
	
	
		
			422 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
	
		
			422 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2021, Linus Groh <linusg@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <LibJS/Runtime/Object.h>
 | |
| 
 | |
| namespace JS::Temporal {
 | |
| 
 | |
| class Temporal final : public Object {
 | |
|     JS_OBJECT(Temporal, Object);
 | |
| 
 | |
| public:
 | |
|     virtual ThrowCompletionOr<void> initialize(Realm&) override;
 | |
|     virtual ~Temporal() override = default;
 | |
| 
 | |
| private:
 | |
|     explicit Temporal(Realm&);
 | |
| };
 | |
| 
 | |
| }
 |