-
Notifications
You must be signed in to change notification settings - Fork 566
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix mimetype parser wrong operator #3924
Conversation
Can you include a test? Or maybe there is a failing WPT this is fixing? |
Tests passing on main: 1031 |
This step is there to skip the rest if it is not needed, so all tests pass without this change. position is never greater than the length of input, so it is a dead code. For some reason, this is the only place where the greater-than was used, while other places used the correct greater-than or equal. |
I'm not arguing with your logic (and I agree with it), but if no test failures change I would assume this code is still dead code. I would like to see a test for both of these conditions, though. |
As I mentioned before, this part of the process is to skip an extra step (at this point, an invalid entry or exit), so it is virtually untestable since it does not make any difference whether this part is there or not. |
Both conditions can be caught with tests?
|
I have checked wpt mimesniff tests, these cases are covered. |
It would be nice to get codecov working again, so we could really see what is and isn't being tested without doing it manually. |
The current code does not include past the end of input, so add equal sign.