mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Fixed incorrect check in tryPushNode
This commit is contained in:
1 parent
6e461e330e
commit
2403cc4414
1 file changed
+1
-1
@@ -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