We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8fa44c3 commit e5e8c6bCopy full SHA for e5e8c6b
1 file changed
src/compiler/binder.ts
@@ -1911,6 +1911,9 @@ namespace ts {
1911
// Instead, we mark the container as ES6, so that it can properly handle the transform.
1912
transformFlags = TransformFlags.ContainsComputedPropertyName;
1913
if (subtreeFlags & TransformFlags.ContainsLexicalThis) {
1914
+ // A computed method name that contains `this` needs to
1915
+ // distinguish itself from the normal case of a method body containing `this`.
1916
+ // So convert ContainsLexicalThis to ContainsLexicalThisInComputedPropertyName
1917
transformFlags |= TransformFlags.ContainsLexicalThisInComputedPropertyName;
1918
}
1919
break;
0 commit comments