浏览代码

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

Linus Groh 4 年之前
父节点
当前提交
aa68de3530
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      Libraries/LibJS/AST.cpp

+ 3 - 2
Libraries/LibJS/AST.cpp

@@ -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);