Skip to content

Commit

Permalink
LibJS: Fix ConditionalExpression::dump()
Browse files Browse the repository at this point in the history
Let's not print m_test three times :^)
  • Loading branch information
linusg authored and awesomekling committed Apr 30, 2020
1 parent 8614fb4 commit fc34123
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Libraries/LibJS/AST.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1366,10 +1366,10 @@ void ConditionalExpression::dump(int indent) const
m_test->dump(indent + 1);
print_indent(indent);
printf("(Consequent)\n");
m_test->dump(indent + 1);
m_consequent->dump(indent + 1);
print_indent(indent);
printf("(Alternate)\n");
m_test->dump(indent + 1);
m_alternate->dump(indent + 1);
}

void SequenceExpression::dump(int indent) const
Expand Down

0 comments on commit fc34123

Please sign in to comment.