mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-14 16:56:06 -05:00
Fixed incorrect check in tryPushNode
This commit is contained in:
@@ -992,7 +992,7 @@ namespace ts {
|
||||
|
||||
/** Pushes a node onto the stack if it is not already at the top of the stack. */
|
||||
function tryPushNode(node: Node): boolean {
|
||||
if (currentNode !== node) {
|
||||
if (currentNode === node) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user