mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 19:12:43 +00:00 
			
		
		
		
	LibJS: Rename ScriptFunction => OrdinaryFunctionObject
These are basically what the spec calls "ordinary function objects", so let's have the name reflect that. :^)
This commit is contained in:
		
							parent
							
								
									ba9d5c4d54
								
							
						
					
					
						commit
						c8270dbe2e
					
				
					 17 changed files with 60 additions and 60 deletions
				
			
		|  | @ -6,7 +6,7 @@ | |||
| 
 | ||||
| #include <LibJS/Interpreter.h> | ||||
| #include <LibJS/Parser.h> | ||||
| #include <LibJS/Runtime/ScriptFunction.h> | ||||
| #include <LibJS/Runtime/OrdinaryFunctionObject.h> | ||||
| #include <LibWeb/DOM/Document.h> | ||||
| #include <LibWeb/DOM/EventListener.h> | ||||
| #include <LibWeb/HTML/EventHandler.h> | ||||
|  | @ -49,7 +49,7 @@ void GlobalEventHandlers::set_event_handler_attribute(const FlyString& name, HTM | |||
|             dbgln("Failed to parse script in event handler attribute '{}'", name); | ||||
|             return; | ||||
|         } | ||||
|         auto* function = JS::ScriptFunction::create(self.script_execution_context()->interpreter().global_object(), name, program->body(), program->parameters(), program->function_length(), nullptr, JS::FunctionKind::Regular, false, false); | ||||
|         auto* function = JS::OrdinaryFunctionObject::create(self.script_execution_context()->interpreter().global_object(), name, program->body(), program->parameters(), program->function_length(), nullptr, JS::FunctionKind::Regular, false, false); | ||||
|         VERIFY(function); | ||||
|         listener = adopt_ref(*new DOM::EventListener(JS::make_handle(static_cast<JS::FunctionObject*>(function)))); | ||||
|     } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling