-
Notifications
You must be signed in to change notification settings - Fork 459
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
Using group.length after removing an element yields a null reference due to not updating the internal value #2010
Comments
Nice catch. Looks like there originally used to be a 2ddde96#diff-0a33dc2c18b9746c9928ecafde442aa2L344 |
#1887 though? |
That's not really the same thing. That PR would've made it so that |
I meant more that you said you were wary of changing it bc people relied on the current behavior, and it's a breaking change. But it's more correct now so... |
Ah. I mean, this really just restores the original / "correct" behavior. We couldn't fix any bugs if we always fear somebody relies on the buggy behavior. :) That PR you linked went in a different direction / changed the behavior, it wasn't a bugfix. |
Code snippet reproducing the issue:
Observed behavior:
Error is on the final trace
Expected behavior:
The
group.length
value should match the newgroup.members.length
valueTemporary fix is to just use the
group.members.length
valueThe text was updated successfully, but these errors were encountered: