mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 13:22:43 +00:00 
			
		
		
		
	LibJS+LibWeb: Replace GlobalObject with Realm in initialize() functions
This is a continuation of the previous commit. Calling initialize() is the first thing that's done after allocating a cell on the JS heap - and in the common case of allocating an object, that's where properties are assigned and intrinsics occasionally accessed. Since those are supposed to live on the realm eventually, this is another step into that direction.
This commit is contained in:
		
							parent
							
								
									ecd163bdf1
								
							
						
					
					
						commit
						5dd5896588
					
				
					 304 changed files with 608 additions and 603 deletions
				
			
		|  | @ -24,9 +24,9 @@ PromiseResolvingFunction::PromiseResolvingFunction(Promise& promise, AlreadyReso | |||
| { | ||||
| } | ||||
| 
 | ||||
| void PromiseResolvingFunction::initialize(GlobalObject& global_object) | ||||
| void PromiseResolvingFunction::initialize(Realm& realm) | ||||
| { | ||||
|     Base::initialize(global_object); | ||||
|     Base::initialize(realm); | ||||
|     define_direct_property(vm().names.length, Value(1), Attribute::Configurable); | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Linus Groh
						Linus Groh