[whatwg/encoding] Static methods for TextEncoder and TextDecoder (PR #284)

NOTE: this PR is currently blocked on a technicality (https://github.com/tabatkins/bikeshed/issues/2270).

This PR adds support for static `TextDecoder.decode`, `TextEncoder.encode` and
`TextEncoder.encodeInto` methods. These do not add new functionality, rather
just acting as useful helpers for "one time" text encoding/decoding operations.

Closes #267.

- [ ] At least two implementers are interested (and none opposed):
  - Deno
  - …
- [ ] [Tests](https://github.com/web-platform-tests/wpt) are written and can be
      reviewed and commented upon at:
  - …
- [ ] [Implementation bugs](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests)
      are filed:
  - Chrome: …
  - Firefox: …
  - Safari: …
  - Deno: …
  - Node.js: …

You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/encoding/pull/284


-- Commit Summary --

  * Static methods for TextEncoder and TextDecoder

-- File Changes --

    M encoding.bs (166)

-- Patch Links --

https://github.com/whatwg/encoding/pull/284.patch

https://github.com/whatwg/encoding/pull/284.diff


-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/encoding/pull/284

You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/encoding/pull/284@github.com>

Received on Friday, 22 April 2022 22:00:24 UTC