1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:18:11 +00:00

LibJS: Simplify Literal::dump()

This commit is contained in:
Andreas Kling 2020-03-11 18:35:39 +01:00
parent 7b13fb557b
commit 29c7a5dcbe

View file

@ -297,13 +297,7 @@ void CallExpression::dump(int indent) const
void Literal::dump(int indent) const
{
print_indent(indent);
if (m_value.is_object())
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());
printf("Literal _%s_\n", m_value.to_string().characters());
}
void FunctionDeclaration::dump(int indent) const