Skip to content

Commit 6ef160f

Browse files
committed
fix typooo
1 parent 7fd8658 commit 6ef160f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compiler/binder.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1435,7 +1435,7 @@ namespace ts {
14351435
bindCondition(node.right, trueTarget, falseTarget);
14361436
}
14371437

1438-
function bindNullishCollasingExpression(node: BinaryExpression, trueTarget: FlowLabel, falseTarget: FlowLabel) {
1438+
function bindNullishCoalescingExpression(node: BinaryExpression, trueTarget: FlowLabel, falseTarget: FlowLabel) {
14391439
const notNullLabel = createBranchLabel();
14401440
bindCondition(node.left, trueTarget, notNullLabel);
14411441
currentFlow = finishFlowLabel(notNullLabel);
@@ -1476,7 +1476,7 @@ namespace ts {
14761476
currentFlow = finishFlowLabel(postExpressionLabel);
14771477
}
14781478
else if (operator === SyntaxKind.QuestionQuestionToken) {
1479-
bindNullishCollasingExpression(node, currentTrueTarget!, currentFalseTarget!);
1479+
bindNullishCoalescingExpression(node, currentTrueTarget!, currentFalseTarget!);
14801480
}
14811481
else {
14821482
bindLogicalExpression(node, currentTrueTarget!, currentFalseTarget!);

0 commit comments

Comments
 (0)