Fix truthiness call check for this-property access (#38163)

This commit is contained in:
Andrew Branch
2020-04-24 13:02:17 -07:00
committed by GitHub
parent 38ff7762ec
commit fe140acc09
6 changed files with 47 additions and 1 deletions

View File

@@ -64,5 +64,10 @@ class Foo {
// ok
this.maybeIsUser ? console.log('this.maybeIsUser') : undefined;
// ok
if (this.isUser) {
this.isUser();
}
}
}