-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
fix(utils): Make looseEqual()
util handle File's comparison correctly
#2640
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(utils): Make looseEqual()
util handle File's comparison correctly
#2640
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #2640 +/- ##
=========================================
+ Coverage 70.5% 70.68% +0.18%
=========================================
Files 172 172
Lines 3173 3183 +10
Branches 926 934 +8
=========================================
+ Hits 2237 2250 +13
+ Misses 680 677 -3
Partials 256 256
Continue to review full report at Codecov.
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
But I'am not sure if File objects are the only case where the current implementation makes problems. I'am going to create some unit tests to back this all up and then we can create a PR for Vue. |
Description of Pull Request:
This PR fixes a bug in the
looseEqual()
util that returnedtrue
if two File objects were passed becauseObject.keys()
returns an empty array.Closes #2638.
PR checklist:
What kind of change does this PR introduce? (check at least one)
Does this PR introduce a breaking change? (check one)
If yes, please describe the impact:
The PR fulfills these requirements:
dev
branch, not themaster
branchfixes #xxxx[,#xxxx]
, where "xxxx" is the issue number)and adding a new feature, break them into separate PRs if at all possible.
Conventional Commits naming convention (i.e.
"fix(alert): not alerting during SSR render", "docs(badge): Updated pill examples, fix typos",
"chore: fix typo in docs", etc). This is very important, as the
CHANGELOG
is generatedfrom these messages.
If new features/enhancement/fixes are added or changed:
package.json
for slot andevent changes)
keyboard only users? clickable items should be in the tab index, etc)
If adding a new feature, or changing the functionality of an existing feature, the PR's
description above includes:
suggestion issue first and wait for approval before working on it)