소스 검색

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