Skip to content

TextEncoder and TextDecoder missing from Window object #663

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

Closed
Mischala opened this issue Feb 20, 2019 · 3 comments
Closed

TextEncoder and TextDecoder missing from Window object #663

Mischala opened this issue Feb 20, 2019 · 3 comments

Comments

@Mischala
Copy link
Contributor

Mischala commented Feb 20, 2019

consider the following:

export const main = () => {
  const encoder1 = new window.TextEncoder();
  const encoder2 = new TextEncoder();

  const decoder1 = new window.TextDecoder();
  const decoder2 = new TextDecoder();
}

new TextDecoder and new window.TextDecoder should both be valid, and in fact are on all browsers tested, except notably, Edge and IE.
But, TextEncoder and TextDecoder are not defined on the Window type.

@Mischala
Copy link
Contributor Author

#664

@saschanaz
Copy link
Contributor

@github-actions close

@github-actions
Copy link
Contributor

Closing because @saschanaz is one of the code-owners of this repository.

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

No branches or pull requests

2 participants