FastestSmallestTextEncoderDecoder icon indicating copy to clipboard operation
FastestSmallestTextEncoderDecoder copied to clipboard

Polyfill doesn't check if TextDecoder is missing

Open davidliu opened this issue 1 year ago • 0 comments

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.

davidliu avatar May 22 '24 04:05 davidliu