Skip to content

Conversation

NathanWalker
Copy link
Contributor

@NathanWalker NathanWalker commented Feb 5, 2025

PR Checklist

What is the current behavior?

A throw could occur during layout introduced from this change which would bubble out to a v8 engine crash:
https://github.com/NativeScript/NativeScript/pull/10679/files#diff-ff996ba7476badc71c6c2ce6924be412385d3ea43a8785248a28159b3f7d203eR54

What is the new behavior?

Just ignore inserting children if < 0.

Notes: Usage of CollectionView surfaced this issue.

@NathanWalker NathanWalker added this to the 8.9 milestone Feb 5, 2025
@NathanWalker NathanWalker merged commit 2305511 into main Feb 5, 2025
2 of 3 checks passed
@NathanWalker NathanWalker deleted the fix/insert-child-negative branch February 5, 2025 17:59
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.

2 participants