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
Continuing to use ES5-style constructors found another bug - property name will contain extra underscore if it starts with 2 underscores, i'm sure it is related to language service.
Code
function MyObject(){
this.__property = 1;
}
var instance = new MyObject();
Expected behavior:
Listing __property with two underscores, when using completion menu appears for instance.
Actual behavior:
Notes
Appears only when property declared using this inside constructor. Prototype properties defined through prototype property and properties defined inside object literal come up fine.
Symbol for this.<property> doesn't have 'name' attribute in declaration, but in the case of prototype.<property> it is here.
The text was updated successfully, but these errors were encountered:
TypeScript Version: nightly (2.1.0-dev.20161026)
Continuing to use ES5-style constructors found another bug - property name will contain extra underscore if it starts with 2 underscores, i'm sure it is related to language service.
Code
Expected behavior:
Listing
__property
with two underscores, when using completion menu appears forinstance
.Actual behavior:
Notes
this
inside constructor. Prototype properties defined throughprototype
property and properties defined inside object literal come up fine.this.<property>
doesn't have 'name' attribute in declaration, but in the case ofprototype.<property>
it is here.The text was updated successfully, but these errors were encountered: