LibJS: Fix dump() indentation of UpdateExpression with suffix operator

This commit is contained in:
Linus Groh 2020-10-19 00:17:46 +01:00 committed by Andreas Kling
parent 2dbea60fe2
commit aa68de3530
Notes: sideshowbarker 2024-07-19 01:50:51 +09:00

View file

@ -1442,9 +1442,10 @@ void UpdateExpression::dump(int indent) const
}
ASTNode::dump(indent);
print_indent(indent + 1);
if (m_prefixed)
if (m_prefixed) {
print_indent(indent + 1);
printf("%s\n", op_string);
}
m_argument->dump(indent + 1);
if (!m_prefixed) {
print_indent(indent + 1);