mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 09:42:45 +00:00 
			
		
		
		
	LibJS: Set the callee context's realm in prepare_for_ordinary_call()
This includes making FunctionObject::realm() actually return a Realm, instead of a GlobalObject.
This commit is contained in:
		
							parent
							
								
									332946ab4f
								
							
						
					
					
						commit
						06e89311fa
					
				
					 8 changed files with 31 additions and 11 deletions
				
			
		|  | @ -43,7 +43,7 @@ OrdinaryFunctionObject::OrdinaryFunctionObject(GlobalObject& global_object, cons | |||
|     , m_body(body) | ||||
|     , m_parameters(move(parameters)) | ||||
|     , m_environment(parent_scope) | ||||
|     , m_realm(&global_object) | ||||
|     , m_realm(vm().current_realm()) | ||||
|     , m_function_length(function_length) | ||||
|     , m_kind(kind) | ||||
|     , m_is_strict(is_strict) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Linus Groh
						Linus Groh