New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: try to use custom function name first #2156
Conversation
common use case like: ```js const fn = function* (ctx) {} fn.name = `some_${var}_${now)`; ```
/* istanbul ignore next */ | ||
const taskName = scope.name || '-'; | ||
const taskName = scope._name || scope.name || '-'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
必须先使用 _name 才能动态设置 function 的名称
@dead-horse 看看,没问题我再提交 2.x 的 |
Codecov Report
@@ Coverage Diff @@
## 1.x #2156 +/- ##
=======================================
Coverage 99.72% 99.72%
=======================================
Files 29 29
Lines 738 738
=======================================
Hits 736 736
Misses 2 2
Continue to review full report at Codecov.
|
@dead-horse 发版本了吗?我去提交一个 2.x patch |
我来发吧,你提 |
common use case like:
Checklist
npm test
passesAffected core subsystem(s)
Description of change