mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 21:42:43 +00:00 
			
		
		
		
	 35c9aa7c05
			
		
	
	
		35c9aa7c05
		
	
	
	
	
		
			
			Now that the GC allocator is able to invoke Cell subclass constructors directly via friendship, we no longer need to keep them public. :^)
		
			
				
	
	
		
			28 lines
		
	
	
	
		
			545 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
	
		
			545 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2021, Linus Groh <linusg@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <LibJS/Runtime/GlobalObject.h>
 | |
| #include <LibJS/Runtime/Object.h>
 | |
| 
 | |
| namespace JS::Test262 {
 | |
| 
 | |
| class AgentObject final : public Object {
 | |
|     JS_OBJECT(AgentObject, Object);
 | |
| 
 | |
| public:
 | |
|     virtual void initialize(JS::Realm&) override;
 | |
|     virtual ~AgentObject() override = default;
 | |
| 
 | |
| private:
 | |
|     explicit AgentObject(Realm&);
 | |
| 
 | |
|     JS_DECLARE_NATIVE_FUNCTION(monotonic_now);
 | |
|     JS_DECLARE_NATIVE_FUNCTION(sleep);
 | |
| };
 | |
| 
 | |
| }
 |