mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 19:12:43 +00:00 
			
		
		
		
	LibJS: Rename GeneratorObjectPrototype to GeneratorPrototype
Given we usually call objects Foo{Object,Constructor,Prototype} or
Foo{,Constructor,Prototype}, this name was an odd choice.
The new one matches the spec better, which calls it the "Generator
Prototype Object", so we simply omit the Object suffix as usual as it's
implied.
			
			
This commit is contained in:
		
							parent
							
								
									b76c66a9ed
								
							
						
					
					
						commit
						4ed49e05a9
					
				
					 10 changed files with 30 additions and 30 deletions
				
			
		|  | @ -8,7 +8,7 @@ | |||
| #include <LibJS/Bytecode/Generator.h> | ||||
| #include <LibJS/Bytecode/Interpreter.h> | ||||
| #include <LibJS/Runtime/GeneratorObject.h> | ||||
| #include <LibJS/Runtime/GeneratorObjectPrototype.h> | ||||
| #include <LibJS/Runtime/GeneratorPrototype.h> | ||||
| #include <LibJS/Runtime/GlobalObject.h> | ||||
| 
 | ||||
| namespace JS { | ||||
|  | @ -21,7 +21,7 @@ ThrowCompletionOr<GeneratorObject*> GeneratorObject::create(GlobalObject& global | |||
|         // We implement async functions by transforming them to generator function in the bytecode
 | ||||
|         // interpreter. However an async function does not have a prototype and should not be
 | ||||
|         // changed thus we hardcode the prototype.
 | ||||
|         generating_function_prototype = global_object.generator_object_prototype(); | ||||
|         generating_function_prototype = global_object.generator_prototype(); | ||||
|     } else { | ||||
|         generating_function_prototype = TRY(generating_function->get(global_object.vm().names.prototype)); | ||||
|     } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Linus Groh
						Linus Groh