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:
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
|
||||
{
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue