Bug 143246 - Getters should not be enumerable on classes
Summary: Getters should not be enumerable on classes
Status: RESOLVED DUPLICATE of bug 143181
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-30 18:37 PDT by Elliott Sprehn
Modified: 2015-03-30 18:42 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Elliott Sprehn 2015-03-30 18:37:27 PDT
class Example {
  get x() { }
}

var object = new Example();
for (var k in object)
  console.log(k);

This should output nothing.
Comment 1 Ryosuke Niwa 2015-03-30 18:42:58 PDT
Right. At the moment, everything on classes are enumerable.

*** This bug has been marked as a duplicate of bug 143181 ***