-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Fix: Replace basic field with empty value in TerserUtil #4842
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: Replace basic field with empty value in TerserUtil #4842
Conversation
It looks like some of the tests in |
Yup the MDM tests are undergoing a minor reckoning right now. Unrelated to this change. |
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## master #4842 +/- ##
============================================
+ Coverage 81.32% 83.13% +1.80%
- Complexity 23650 25297 +1647
============================================
Files 1425 1542 +117
Lines 86399 92279 +5880
Branches 11677 12314 +637
============================================
+ Hits 70265 76715 +6450
+ Misses 10947 10136 -811
- Partials 5187 5428 +241 ☔ View full report in Codecov by Sentry. |
@nigtrifork I have added credit for your fix here. Can you review this PR and ensure my description of the fix is roughly accurate? Thanks for the contribution! |
* add test proving bug * fix: handle empty fromValue in TerserUtil.replaceField * add comment to TerserUtilTest.testReplaceFieldByEmptyValue
I came across this bug when doing some resource merging logic.
Before the fix,
TerserUtil
would fail silently and log the error at debug level.