You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classC{prop: string;other=this['prop'];// this should be a findingconstructor(){console.log(this.prop);// this is an errorconsole.log(this['prop']);// this should be a findingthis.prop='';}}
The one in the property initializer should be pretty easy.
Note that checking the use in the constructor needs a complete control flow graph to check for assignments in all possible control flow graphs like o?.[this.prop = ''].prop ?? (this.prop = '');
The text was updated successfully, but these errors were encountered:
The one in the property initializer should be pretty easy.
Note that checking the use in the constructor needs a complete control flow graph to check for assignments in all possible control flow graphs like
o?.[this.prop = ''].prop ?? (this.prop = '');
The text was updated successfully, but these errors were encountered: