diff --git a/Userland/Libraries/LibJS/Bytecode/Op.cpp b/Userland/Libraries/LibJS/Bytecode/Op.cpp index 58be7e29d6..07adf1fe6c 100644 --- a/Userland/Libraries/LibJS/Bytecode/Op.cpp +++ b/Userland/Libraries/LibJS/Bytecode/Op.cpp @@ -1155,7 +1155,8 @@ String NewFunction::to_string_impl(Bytecode::Executable const&) const String NewClass::to_string_impl(Bytecode::Executable const&) const { - return "NewClass"; + auto name = m_class_expression.name(); + return String::formatted("NewClass '{}'", name.is_null() ? ""sv : name); } String Return::to_string_impl(Bytecode::Executable const&) const