mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:52:45 +00:00 
			
		
		
		
	LibJS: Don't use null DFS for binding_name parameters in ClassExpression
This commit is contained in:
		
							parent
							
								
									d558468d03
								
							
						
					
					
						commit
						026c1caba0
					
				
					 3 changed files with 9 additions and 9 deletions
				
			
		|  | @ -611,7 +611,7 @@ inline ThrowCompletionOr<ECMAScriptFunctionObject*> new_class(VM& vm, Value supe | |||
|     auto* class_environment = vm.lexical_environment(); | ||||
|     vm.running_execution_context().lexical_environment = interpreter.saved_lexical_environment_stack().take_last(); | ||||
| 
 | ||||
|     DeprecatedFlyString binding_name; | ||||
|     Optional<DeprecatedFlyString> binding_name; | ||||
|     DeprecatedFlyString class_name; | ||||
|     if (!class_expression.has_name() && lhs_name.has_value()) { | ||||
|         class_name = interpreter.current_executable().get_identifier(lhs_name.value()); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Klishch
						Dan Klishch