Commits

Patrick Pijnappel committed 35436640881
[stdlib] Replace usage of UTF8._numTrailingBytes() The checks are technically different (previous check only rejected malformed initial code units, not all malformed sequences). Which is more correct is debatable, but since _buffer is only filled by transcoding from UTF-16 it should always be well-formed anyway and the difference is not very relevant.