zloirock/core-js

`TextEncoder` and `TextDecoder`

Open

#926 建立於 2021年4月12日

在 GitHub 查看
 (6 留言) (3 反應) (0 負責人)JavaScript (23,771 star) (1,609 fork)batch import
help wantedweb standards

描述

There is already good browser support for these, but Node.js does not have these at all, so testing code that uses them is an issue if you're using jest w/ babel or something like that.

Having a polyfill for these that just 'works out of the box' would be great. There's a very good polyfill at the page below.

https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder

貢獻者指南

`TextEncoder` and `TextDecoder` · zloirock/core-js#926 | Good First Issue