| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
* refactor util exports * early capture of prototype methods * use template strings and args consistently PR-URL: nodejs#13803 Reviewed-By: Alexey Orlenko <eaglexrlnk@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Provide an (initially experimental) implementation of the WHATWG Encoding Standard API (`TextDecoder` and `TextEncoder`). The is the same API implemented on the browser side. By default, with small-icu, only the UTF-8, UTF-16le and UTF-16be decoders are supported. With full-icu enabled, every encoding other than iso-8859-16 is supported. This provides a basic test, but does not include the full web platform tests. Note: many of the web platform tests for this would fail by default because we ship with small-icu by default. A process warning will be emitted on first use to indicate that the API is still experimental. No runtime flag is required to use the feature. Refs: https://encoding.spec.whatwg.org/ PR-URL: nodejs#13644 Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Sorry, something went wrong.
|
Thank you! The second commit message doesn’t seem quite right, it should start with buffer: I think? LGTM apart from that. |
Sorry, something went wrong.
|
Oh, that already happened during landing in master … hm. Should we fix that up here? I think our tooling would be okay with that and use buffer without making any more trouble. |
Sorry, something went wrong.
|
Nope, the WHATWG Encoding stuff landed within util so the util: prefix is right. We need to revisit if that's the right place long term tho. |
Sorry, something went wrong.
|
Oh, okay. In that case it’s just the original PR title that’s confusing. 😄 |
Sorry, something went wrong.
|
heh... oh right! completely forgot to change that! |
Sorry, something went wrong.
Provide an (initially experimental) implementation of the WHATWG Encoding Standard API (`TextDecoder` and `TextEncoder`). The is the same API implemented on the browser side. By default, with small-icu, only the UTF-8, UTF-16le and UTF-16be decoders are supported. With full-icu enabled, every encoding other than iso-8859-16 is supported. This provides a basic test, but does not include the full web platform tests. Note: many of the web platform tests for this would fail by default because we ship with small-icu by default. A process warning will be emitted on first use to indicate that the API is still experimental. No runtime flag is required to use the feature. Backport-PR-URL: #14585 Backport-Reviewed-By: Anna Henningsen <anna@addaleax.net> Refs: https://encoding.spec.whatwg.org/ PR-URL: #13644 Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Backport of #13803 and #13644 to v8.x-staging.
#13803 is required for #13644 to land cleanly.
This should go through a CI run before landing
Checklist
Affected core subsystem(s)
util