diff --git a/src/compiler/core.ts b/src/compiler/core.ts index ff173b41295..c8364ae430d 100644 --- a/src/compiler/core.ts +++ b/src/compiler/core.ts @@ -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; }