mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 20:42:43 +00:00 
			
		
		
		
	LibJS: Add Object::may_interfere_with_indexed_property_access() virtual
This function must return true if the object may intercept and customize access to indexed properties (properties where the property name is a non-negative integer.) This will be used to implement fast path optimizations for array-like accesses in subsequent commits.
This commit is contained in:
		
							parent
							
								
									900334a4aa
								
							
						
					
					
						commit
						7df1692580
					
				
					 12 changed files with 28 additions and 0 deletions
				
			
		|  | @ -44,6 +44,8 @@ private: | |||
|     virtual void initialize(JS::Realm&) override; | ||||
|     virtual JS::ThrowCompletionOr<Optional<JS::PropertyDescriptor>> internal_get_own_property(JS::PropertyKey const& property_name) const override; | ||||
| 
 | ||||
|     virtual bool may_interfere_with_indexed_property_access() const final { return true; } | ||||
| 
 | ||||
|     JS::MarkedVector<JS::NonnullGCPtr<VideoTrack>> m_video_tracks; | ||||
| }; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling