mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:27:35 +00:00
LibJS: Simplify Literal::dump()
This commit is contained in:
parent
7b13fb557b
commit
29c7a5dcbe
1 changed files with 1 additions and 7 deletions
|
@ -297,13 +297,7 @@ void CallExpression::dump(int indent) const
|
||||||
void Literal::dump(int indent) const
|
void Literal::dump(int indent) const
|
||||||
{
|
{
|
||||||
print_indent(indent);
|
print_indent(indent);
|
||||||
if (m_value.is_object())
|
printf("Literal _%s_\n", m_value.to_string().characters());
|
||||||
ASSERT_NOT_REACHED();
|
|
||||||
|
|
||||||
if (m_value.is_string())
|
|
||||||
printf("%s\n", m_value.as_string()->characters());
|
|
||||||
else
|
|
||||||
printf("%s\n", m_value.to_string().characters());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void FunctionDeclaration::dump(int indent) const
|
void FunctionDeclaration::dump(int indent) const
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue