-
Notifications
You must be signed in to change notification settings - Fork 31.2k
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
benchmark: add default value for settings param #45594
base: main
Are you sure you want to change the base?
Conversation
aafbb28
to
107dd6d
Compare
PTAL |
benchmark/_cli.js
Outdated
const filters = this.optional.filter ? [...this.optional.filter] : []; | ||
const excludes = this.optional.exclude ? [...this.optional.exclude] : []; |
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.
This looks unrelated
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.
Emmm... I have forgot why a add spread syntax in there. This PR has been a long time coming, I have made a code review, and I think it is unnecessary too.I will restore it
This issue/PR was marked as stalled, it will be automatically closed in 30 days. If it should remain open, please leave a comment explaining why it should remain open. |
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.
I will update my commit ASAP
benchmark/_cli.js
Outdated
const filters = this.optional.filter ? [...this.optional.filter] : []; | ||
const excludes = this.optional.exclude ? [...this.optional.exclude] : []; |
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.
Emmm... I have forgot why a add spread syntax in there. This PR has been a long time coming, I have made a code review, and I think it is unnecessary too.I will restore it
Co-authored-by: Antoine du Hamel <[email protected]>
Co-authored-by: Antoine du Hamel <[email protected]>
PTAL.
|
It will cause an error when I try to import
_cli.js
:So I try to use
kEmptyObject
as default settings value for benchmark CLI.