matrix-org / matrix-js-sdk

Matrix Client-Server SDK for JavaScript
Apache License 2.0
1.49k stars 577 forks source link

Remove redundant `TextEncoder` shim #4290

Closed richvdh closed 7 hours ago

richvdh commented 3 days ago

I believe the only reason we had this was that, before Node v11.0, TextEncoder wasn't available in the global object. Nowadays it is (see https://nodejs.org/api/util.html#class-utiltextencoder), so let's get rid of it.