-
-
Notifications
You must be signed in to change notification settings - Fork 33.1k
Closed
Labels
invalidIssues and PRs that are invalid.Issues and PRs that are invalid.v8 engineIssues and PRs related to the V8 dependency.Issues and PRs related to the V8 dependency.
Description
- Version: v6.2.1
- Platform: Linux ee7f9120bc0a 3.13.0-86-generic lib: reintroduce v8 module #131-Ubuntu SMP Thu May 12 23:33:13 UTC 2016 x86_64 GNU/Linux
- Subsystem:
sample code:
let obj = {
get foo() {},
set bar(value) {},
};
let getter = Object.getOwnPropertyDescriptor(obj, 'foo').get;
console.log(getter.name); //expect `get foo` but actual `foo`
let setter = Object.getOwnPropertyDescriptor(obj, 'bar').set;
console.log(setter.name); //expect `set bar` but actual `bar`
I tested this on Chrome and follow http://exploringjs.com/es6/ch_callables.html#_constructs-that-provide-names-for-functions (12.6.1.4 section), so I believe that it's a bug from NodeJS.
Metadata
Metadata
Assignees
Labels
invalidIssues and PRs that are invalid.Issues and PRs that are invalid.v8 engineIssues and PRs related to the V8 dependency.Issues and PRs related to the V8 dependency.