mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-01 21:59:11 +00:00
LibJS: Show class name in the dump from the NewClass instruction
This commit is contained in:
parent
baa4d69668
commit
3e65afa41a
Notes:
sideshowbarker
2024-07-17 07:09:53 +09:00
Author: https://github.com/Hendiadyoin1
Commit: 3e65afa41a
Pull-request: https://github.com/SerenityOS/serenity/pull/15402
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
|
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
|
String Return::to_string_impl(Bytecode::Executable const&) const
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue