-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptES6Relates to the ES6 SpecRelates to the ES6 SpecWon't FixThe severity and priority of this issue do not warrant the time or complexity needed to fix itThe severity and priority of this issue do not warrant the time or complexity needed to fix it
Milestone
Description
TypeScript Version: 2.2.2
Code
class Person {
greet() { }
bye() { }
}
function checkProperties(obj) {
console.log("Keys found in (for-in):");
for (let key in obj) {
console.log(`Found key: ${key}`);
}
}
let p = new Person();
checkProperties(p);Expected behavior:
ES5 or ES6 target, the methods should be non-enumerable.
Actual behavior:
In ES5 the methods are enumerable.
YiSiWang, rolandjitsu, mgol, mathieumg, X-Jagger and 3 more
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptES6Relates to the ES6 SpecRelates to the ES6 SpecWon't FixThe severity and priority of this issue do not warrant the time or complexity needed to fix itThe severity and priority of this issue do not warrant the time or complexity needed to fix it