Allow .name as a static property
Open
bug
- Dominant language
- JavaScript
- Stars
- 3
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
Currently the constructor is a declared function with `.name === "constructor"`, and `populate(constructor, newStatics, base)` is not able to override that property.
The constructor should be an anonymous function expression instead, so that one can set its `.name` property (or not) as one sees fit.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.