Skip to content

Commit 0a68f37

Browse files
Update src/compiler/transformers/utilities.ts
Co-Authored-By: Daniel Rosenwasser <[email protected]>
1 parent f8bf4e1 commit 0a68f37

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/compiler/transformers/utilities.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,8 @@ namespace ts {
282282

283283
export function shouldCaptureInTempVariable(expression: Expression): boolean {
284284
// don't capture identifiers and `this` in a temporary variable
285-
// `super` cannot be captured as it's no real variable
285+
// `super` cannot be captured as it's not a real variable
286+
286287
return !isIdentifier(expression) &&
287288
expression.kind !== SyntaxKind.ThisKeyword &&
288289
expression.kind !== SyntaxKind.SuperKeyword;

0 commit comments

Comments
 (0)