Skip to content

Commit acc167d

Browse files
committed
fix rebase conflict
1 parent 39ae072 commit acc167d

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/compiler/transformers/es2020.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -196,14 +196,6 @@ namespace ts {
196196
);
197197
}
198198

199-
function shouldCaptureInTempVariable(expression: Expression): boolean {
200-
// don't capture identifiers and `this` in a temporary variable
201-
// `super` cannot be captured as it's no real variable
202-
return !isIdentifier(expression) &&
203-
expression.kind !== SyntaxKind.ThisKeyword &&
204-
expression.kind !== SyntaxKind.SuperKeyword;
205-
}
206-
207199
function visitDeleteExpression(node: DeleteExpression) {
208200
return isOptionalChain(skipParentheses(node.expression))
209201
? setOriginalNode(visitNonOptionalExpression(node.expression, /*captureThisArg*/ false, /*isDelete*/ true), node)

0 commit comments

Comments
 (0)