Merge pull request #9473 from HerringtonDarkholme/fix_static

[Fix #9449]change variable name for strict mode
This commit is contained in:
Mohamed Hegazy 2016-07-01 09:51:29 -07:00 committed by GitHub
commit 0a682f1360

View file

@ -13294,8 +13294,8 @@ namespace ts {
}
}
else {
const static = forEach(member.modifiers, m => m.kind === SyntaxKind.StaticKeyword);
const names = static ? staticNames : instanceNames;
const isStatic = forEach(member.modifiers, m => m.kind === SyntaxKind.StaticKeyword);
const names = isStatic ? staticNames : instanceNames;
const memberName = member.name && getPropertyNameForPropertyNameNode(member.name);
if (memberName) {