mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Update control flow for nested binary exprs
This commit is contained in:
1 parent
8a15291541
commit
2b7e790732
4 files changed
+504
-33
No files matched your search
@@ -1608,7 +1608,7 @@ namespace ts {
|
||||
* If `node` is a BinaryExpression, adds it to the local work stack, otherwise recursively binds it
|
||||
*/
|
||||
function maybeBind(node: Node) {
|
||||
if (node && isBinaryExpression(node)) {
|
||||
if (node && isBinaryExpression(node) && !isDestructuringAssignment(node)) {
|
||||
stackIndex++;
|
||||
workStacks.expr[stackIndex] = node;
|
||||
workStacks.state[stackIndex] = BindBinaryExpressionFlowState.BindThenBindChildren;
|
||||
|
||||
Reference in new issue
Block a user