Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib/node: Add util.TextDecoder/TextEncoder #7713

Closed
wants to merge 1 commit into from

Conversation

cakoose
Copy link
Contributor

@cakoose cakoose commented May 10, 2019

Library docs:

Node 8.3 added them to 'util'.

Node 11.0 added them to the global object, but I didn't do that part.

@goodmind goodmind added the Library definitions Issues or pull requests about core library definitions label May 11, 2019
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mvitousek has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@mvitousek mvitousek self-assigned this May 16, 2019
@facebook-github-bot
Copy link
Contributor

@mvitousek merged this pull request in c8b557b.

@goodmind
Copy link
Contributor

This is actually just duplicates same thing from bom.js

@cakoose
Copy link
Contributor Author

cakoose commented Jun 23, 2019

Oh, interesting. I wonder if there's a way to share some of the definitions.

One tricky thing is that the Node API is slightly different. For example, the TextEncoder constructor doesn't accept an argument, since it only supports UTF-8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Library definitions Issues or pull requests about core library definitions Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants