Bug 143246
Summary: | Getters should not be enumerable on classes | ||
---|---|---|---|
Product: | WebKit | Reporter: | Elliott Sprehn <esprehn> |
Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | fpizlo, rniwa |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Elliott Sprehn
class Example {
get x() { }
}
var object = new Example();
for (var k in object)
console.log(k);
This should output nothing.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Ryosuke Niwa
Right. At the moment, everything on classes are enumerable.
*** This bug has been marked as a duplicate of bug 143181 ***