Skip to content

TextEncoder and TextDecoder missing from Window object #663

Closed
@Mischala

Description

@Mischala

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions