Skip to content

Commit 0a682f1

Browse files
authored
Merge pull request #9473 from HerringtonDarkholme/fix_static
[Fix #9449]change variable name for strict mode
2 parents 613e2d3 + d63ef2c commit 0a682f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compiler/checker.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13294,8 +13294,8 @@ namespace ts {
1329413294
}
1329513295
}
1329613296
else {
13297-
const static = forEach(member.modifiers, m => m.kind === SyntaxKind.StaticKeyword);
13298-
const names = static ? staticNames : instanceNames;
13297+
const isStatic = forEach(member.modifiers, m => m.kind === SyntaxKind.StaticKeyword);
13298+
const names = isStatic ? staticNames : instanceNames;
1329913299

1330013300
const memberName = member.name && getPropertyNameForPropertyNameNode(member.name);
1330113301
if (memberName) {

0 commit comments

Comments
 (0)