change variable name for strict mode

This commit is contained in:
Herrington Darkholme
2016-07-02 00:15:06 +08:00
parent 613e2d33b6
commit d63ef2c9f5

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) {