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

fix(encoding): make textencoder work with forced non-strings #8206

Merged
merged 2 commits into from
Nov 1, 2020

Conversation

benjamingr
Copy link
Contributor

Make TextEncoder behave like the browser's TextEncoder if the user passed a non-string and add a test for it, uses the fix
suggested by @kitsonk

Fixes: #8201

As with #8205 please be "brutal" with me and give me any feedback that will make future contributions easier from the project's side :]

Copy link
Contributor

@kitsonk kitsonk left a comment

Choose a reason for hiding this comment

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

LGTM

@kitsonk kitsonk merged commit 9397cf5 into denoland:master Nov 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TextEncoder.encode TypeError: Invalid argument should give more details
2 participants