CheerpX doesn't implement the new TCGETS2/TCSETS2 and only supports TCGETS/TCSETS. However it notifies the caller by returning EINVAL (which implies this is a supported call but the argument you used is invalid) instead of the more appropriate ENOTTY (which means this operation does not apply).
Regardless of this being a bug or not, it's pretty uncommon and non-standard, especially for linux. So, returning ENOTTY would be more well supported.
See this PR, it has more details:
bytecodealliance/rustix#1573