mirror of
https://github.com/servo/servo
synced 2026-05-11 17:37:21 +02:00
When doing operations on `RopeIndex` that need to make slices of lines, this change makes it so that the resulting index does not intersect a character. This is important because Rust will panic if you attempt to slice a string that way. Testing: This change adds a WPT crash test and a `Rope` unit test. Fixes: #42217. Signed-off-by: Martin Robinson <mrobinson@igalia.com>