mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 12:22:44 +00:00 
			
		
		
		
	 4fcff01ef3
			
		
	
	
		4fcff01ef3
		
	
	
	
	
		
			
			We don't have a 'root execution environment' anymore (thankfully), so we can make sure that the ESO the HostDefined object holds onto is a NonnullGCPtr.
		
			
				
	
	
		
			22 lines
		
	
	
	
		
			527 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
	
		
			527 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2022, Andrew Kaster <akaster@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #include <LibJS/Heap/Cell.h>
 | |
| #include <LibJS/Runtime/Realm.h>
 | |
| #include <LibWeb/Bindings/HostDefined.h>
 | |
| #include <LibWeb/Bindings/Intrinsics.h>
 | |
| #include <LibWeb/HTML/Scripting/Environments.h>
 | |
| 
 | |
| namespace Web::Bindings {
 | |
| 
 | |
| void HostDefined::visit_edges(JS::Cell::Visitor& visitor)
 | |
| {
 | |
|     JS::Realm::HostDefined::visit_edges(visitor);
 | |
|     visitor.visit(environment_settings_object);
 | |
|     visitor.visit(intrinsics);
 | |
| }
 | |
| 
 | |
| }
 |