FastestSmallestTextEncoderDecoder
FastestSmallestTextEncoderDecoder copied to clipboard
Polyfill doesn't check if TextDecoder is missing
Been using this on react-native, but as of 0.74.0, the underlying hermes engine now includes TextEncoder, but doesn't have TextDecoder. Since the polyfill only checks if TextEncoder exists or not (making the assumption that they'd always exist/not exist together), the polyfill fails to fill in TextDecoder.