less.js
less.js copied to clipboard
refactor: Modify this pointer so that it is not empty.
What: get correct this
Why:
this === undefined
https://github.com/less/less.js/blob/1eafc06db4ed062761ce6ca65044204cf32308a1/packages/less/src/less/functions/number.js#L54
How:
Checklist:
- [ ] Documentation N/A
- [ ] Added/updated unit tests N/A
- [x] Code complete
Can you add special unit tests for this PR ? Thanks
@iChenLei I've added some special
test cases.:sweat_smile: