encoding icon indicating copy to clipboard operation
encoding copied to clipboard

Static methods for TextEncoder and TextDecoder

Open lucacasonato opened this issue 3 years ago • 1 comments
trafficstars

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 are written and can be reviewed and commented upon at:
  • [ ] Implementation bugs are filed:
    • Chrome: …
    • Firefox: …
    • Safari: …
    • Deno: …
    • Node.js: …

Preview | Diff

lucacasonato avatar Apr 22 '22 21:04 lucacasonato

@lucacasonato ... are you still wanting to push this forward. I'm interested in implementing this for both workers and node.js

jasnell avatar Apr 07 '24 14:04 jasnell