-
Notifications
You must be signed in to change notification settings - Fork 31.1k
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
events: fix undefined passes to arrayClone #56264
Conversation
Please add a test case |
Done 💯 |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #56264 +/- ##
==========================================
- Coverage 88.55% 88.54% -0.01%
==========================================
Files 657 657
Lines 190243 190245 +2
Branches 36536 36542 +6
==========================================
- Hits 168461 168457 -4
- Misses 14963 14968 +5
- Partials 6819 6820 +1
|
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 am actually open to (prefer to) revert and add a test as well
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.
Had a private chat with @jakecastelli. I think it's better to revert this and add a test.
@origranot Would you like to raise a new PR to revert the commit and introduce a new commit to add the test?
Yea, I am on it. Thanks! |
Closed in favor of #56282. |
Fixes #56263
Another suggestion is to force developers to pass a string, else throw an
ERR_INVALID_ARG_TYPE
but this should consider a breaking change.Looking forward for your feedback!