LibJS: Port remaining bytecode identifiers to UTF-16

This commit is contained in:
Timothy Flynn 2025-08-07 16:34:36 -04:00 committed by Jelle Raaijmakers
commit cf61171864
Notes: github-actions[bot] 2025-08-14 08:28:21 +00:00
5 changed files with 16 additions and 21 deletions

View file

@ -253,7 +253,7 @@ ThrowCompletionOr<ClassElement::ClassValue> ClassField::class_element_evaluation
});
// FIXME: A potential optimization is not creating the functions here since these are never directly accessible.
auto function_code = create_ast_node<ClassFieldInitializerStatement>(m_initializer->source_range(), copy_initializer.release_nonnull(), name.to_utf8_but_should_be_ported_to_utf16());
auto function_code = create_ast_node<ClassFieldInitializerStatement>(m_initializer->source_range(), copy_initializer.release_nonnull(), move(name));
FunctionParsingInsights parsing_insights;
parsing_insights.uses_this_from_environment = true;
parsing_insights.uses_this = true;