Make it override friendly
Open
@medikoo is already working on this.
Since Aug 10, 2018.
enhancement
- Dominant language
- JavaScript
- Stars
- 44
- Forks
- 25
- PR merge metrics
- No merged PRs in 30d
Description
When overriding existing property configuration, not listed characteristics is kept at it's current value, e.g. when overriding enumerable property, and not stating new value for enumerable, the property will stay enumerable.
Currently there's no way with d to maintain such defaults, we need to be explicit about all property characteristics, otherwise it'll be just set to false. That's a big downside
Possibly it could work that way:
d(value)- no configuration, keep current behavior{ configurable: true, writable: true, enumerable: false, value })d('c!w', value)- Pass only listed configuration properties, and if we want to negate setting, precede it with!. Therefore in this example it'll turn to{ configurable: true, writable: false, value }
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.