mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 00:45:08 +00:00
LibJS: Show class name in the dump from the NewClass instruction
This commit is contained in:
parent
baa4d69668
commit
3e65afa41a
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue