jashkenas / jashkenas/underscore
executeBound on var arg constructors
- Dominant language
- JavaScript
- Stars
- 27.3k
- Forks
- 5.4k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 1
Description
As mentioned earlier (#2199), `exectueBound` doesn't support all of `Function.prototype.bind` cases on constructors which take variable arguments. As the main implementation of `bind` no longer uses the native implementation, it's important we fix it.
Lodash currently supports these cases.
``` js
var D = _.bind(Date, null, 2015, 05)
new D(10);
```
Contributor guide
Research direction
Start by reproducing the issue's `_.bind(Date, null, 2015, 05)` and `new D(10)` example, then compare the result with `Function.prototype.bind` and Lodash's behavior. Done means `executeBound` supports constructors that receive variable arguments while preserving the shown constructor behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100