1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-19 17:55:07 +00:00

LibWeb: Crash instead of spinning if parse_drawto fails to match

If parse_drawto fails to match anything, it will spin forever.
Instead, print out the character that failed to match and assert
false.
This commit is contained in:
Luke 2020-08-19 22:35:31 +01:00 committed by Andreas Kling
parent 8bbb7e25e6
commit 65afb40fc5

View file

@ -133,6 +133,9 @@ void PathDataParser::parse_drawto() {
parse_smooth_quadratic_bezier_curveto();
} else if (match('A') || match('a')) {
parse_elliptical_arc();
} else {
dbg() << "PathDataParser::parse_drawto failed to match: '" << ch() << "'";
TODO();
}
}