This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Instead of having first and second, we could have lead and flag and a single algorithm for getting the code point.
Actually pretty straightforward and a lot cleaner. https://github.com/whatwg/encoding/commit/a17337e89e21a02033c6e331c6fb01226bdcdf1e