anonyco / FastestSmallestTextEncoderDecoder

The fastest smallest Javascript polyfill for encodeInto of TextEncoder, encode of TextEncoder, and decode of TextDecoder for UTF-8 only.
https://anonyco.github.io/FastestSmallestTextEncoderDecoder/gh-pages/
Creative Commons Zero v1.0 Universal
145 stars 33 forks source link

Missing encoding property #12

Closed JakeChampion closed 1 month ago

JakeChampion commented 4 years ago

I believe this property is required as part of the specification -- https://encoding.spec.whatwg.org/#dom-textencoder-encoding but I can not see it being set in this polyfill.

new TextEncoder().encoding === 'utf-8'