mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 14:02:46 +00:00 
			
		
		
		
	LibJS+LibWeb: Fix some inconsistencies in NativeFunction callbacks
These should always pass the arguments in a const Vector<JS::Value>&.
This commit is contained in:
		
							parent
							
								
									324b92fd06
								
							
						
					
					
						commit
						08b17d70af
					
				
					 3 changed files with 3 additions and 3 deletions
				
			
		|  | @ -36,7 +36,7 @@ namespace Bindings { | |||
| DocumentWrapper::DocumentWrapper(Document& document) | ||||
|     : NodeWrapper(document) | ||||
| { | ||||
|     put_native_function("getElementById", [this](JS::Object*, Vector<JS::Value> arguments) -> JS::Value { | ||||
|     put_native_function("getElementById", [this](JS::Object*, const Vector<JS::Value>& arguments) -> JS::Value { | ||||
|         if (arguments.is_empty()) | ||||
|             return JS::js_null(); | ||||
|         auto id = arguments[0].to_string(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling