-
-
Notifications
You must be signed in to change notification settings - Fork 33.1k
Closed
Labels
help wantedIssues that need assistance from volunteers or PRs that need help to proceed.Issues that need assistance from volunteers or PRs that need help to proceed.utilIssues and PRs related to the built-in util module.Issues and PRs related to the built-in util module.

Description
- Version: v7.10.0
- Platform: Linux x1 4.4.0-93-generic test-require-resolve: use case insensitive compare #116-Ubuntu SMP Fri Aug 11 21:17:51 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Example:
> function f() {}
> f.prototype.
f.prototype.__defineGetter__ f.prototype.__defineSetter__ f.prototype.__lookupGetter__
f.prototype.__lookupSetter__ f.prototype.__proto__ f.prototype.constructor
f.prototype.hasOwnProperty f.prototype.isPrototypeOf f.prototype.propertyIsEnumerable
f.prototype.toLocaleString f.prototype.toString f.prototype.valueOf
> Object.getOwnPropertyNames(f.prototype);
[ 'constructor' ]
In the example above it only shows the inherited "constructor" property from Object.prototype
.
Non-enumerable properties of other objects show up, though.
Example:
> let o = {};
> Object.defineProperty(o, "firstName", {value: "ted"});
> o.
o.__defineGetter__ o.__defineSetter__ o.__lookupGetter__ o.__lookupSetter__
o.__proto__ o.constructor o.hasOwnProperty o.isPrototypeOf
o.propertyIsEnumerable o.toLocaleString o.toString o.valueOf
o.firstName
Metadata
Metadata
Assignees
Labels
help wantedIssues that need assistance from volunteers or PRs that need help to proceed.Issues that need assistance from volunteers or PRs that need help to proceed.utilIssues and PRs related to the built-in util module.Issues and PRs related to the built-in util module.