mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 13:32:45 +00:00 
			
		
		
		
	LibJS: Rename Function => FunctionObject
This commit is contained in:
		
							parent
							
								
									e389ae3c97
								
							
						
					
					
						commit
						ba9d5c4d54
					
				
					 114 changed files with 263 additions and 262 deletions
				
			
		|  | @ -854,7 +854,7 @@ void generate_implementation(const IDL::Interface& interface) | |||
| #include <AK/FlyString.h> | ||||
| #include <LibJS/Runtime/Array.h> | ||||
| #include <LibJS/Runtime/Error.h> | ||||
| #include <LibJS/Runtime/Function.h> | ||||
| #include <LibJS/Runtime/FunctionObject.h> | ||||
| #include <LibJS/Runtime/GlobalObject.h> | ||||
| #include <LibJS/Runtime/TypedArray.h> | ||||
| #include <LibJS/Runtime/Value.h> | ||||
|  | @ -968,7 +968,7 @@ public: | |||
|     virtual ~@constructor_class@() override; | ||||
| 
 | ||||
|     virtual JS::Value call() override; | ||||
|     virtual JS::Value construct(JS::Function& new_target) override; | ||||
|     virtual JS::Value construct(JS::FunctionObject& new_target) override; | ||||
| 
 | ||||
| private: | ||||
|     virtual bool has_constructor() const override { return true; } | ||||
|  | @ -1040,7 +1040,7 @@ JS::Value @constructor_class@::call() | |||
|     return {}; | ||||
| } | ||||
| 
 | ||||
| JS::Value @constructor_class@::construct(Function&) | ||||
| JS::Value @constructor_class@::construct(FunctionObject&) | ||||
| { | ||||
| )~~~"); | ||||
| 
 | ||||
|  | @ -1198,7 +1198,7 @@ void generate_prototype_implementation(const IDL::Interface& interface) | |||
| #include <AK/Function.h> | ||||
| #include <LibJS/Runtime/Array.h> | ||||
| #include <LibJS/Runtime/Error.h> | ||||
| #include <LibJS/Runtime/Function.h> | ||||
| #include <LibJS/Runtime/FunctionObject.h> | ||||
| #include <LibJS/Runtime/GlobalObject.h> | ||||
| #include <LibJS/Runtime/TypedArray.h> | ||||
| #include <LibWeb/Bindings/@prototype_class@.h> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling