Skip to content
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(sorted): fix sortedset and sortedmap builders not correctly clearing their source when modified #192

Merged
merged 1 commit into from
Dec 9, 2023

Conversation

vitoke
Copy link
Contributor

@vitoke vitoke commented Dec 9, 2023

Fixes #188

SortedSet and SortedMap builders were using a piece of code to normalize their internal structures after being modified. However, this normalization did not correctly remove a reference to the original immutable instance after modification. This caused a build from the builder to use the immutable data structure as source, ignoring the modification. This has been fixed.

Copy link

codecov bot commented Dec 9, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (54520fe) 96.96% compared to head (196cb90) 96.98%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #192      +/-   ##
==========================================
+ Coverage   96.96%   96.98%   +0.02%     
==========================================
  Files         322      322              
  Lines       54740    54758      +18     
  Branches     6438     6444       +6     
==========================================
+ Hits        53076    53106      +30     
+ Misses       1652     1640      -12     
  Partials       12       12              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@vitoke vitoke merged commit 3e19056 into main Dec 9, 2023
@vitoke vitoke deleted the fix/sortedset-getatindex branch December 9, 2023 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: getAtIndex causes TypeError: Cannot read properties of undefined (reading 'size')
1 participant