James M Snell
ed21cb1774
util: implement WHATWG Encoding Standard API
...
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: https://github.com/nodejs/node/pull/13644
Reviewed-By: Timothy Gu <timothygu99@gmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
2017-07-24 14:04:13 -07:00
..
2017-03-10 11:23:48 -08:00
2017-06-17 19:17:46 +02:00
2017-05-10 22:22:20 +02:00
2017-07-06 08:20:03 +02:00
2017-05-28 17:13:01 +02:00
2016-09-05 10:21:34 +02:00
2016-06-29 13:49:37 +02:00
2017-06-16 19:09:50 +03:00
2017-03-10 11:23:48 -08:00
2017-03-10 11:23:48 -08:00
2017-06-20 18:42:25 -04:00
2017-02-04 00:20:10 +09:00
2017-05-10 22:22:15 +02:00
2017-05-10 22:22:15 +02:00
2017-05-10 22:22:20 +02:00
2017-05-10 22:22:20 +02:00
2017-06-06 11:16:58 -04:00
2017-06-16 19:27:29 +02:00
2017-06-16 19:27:29 +02:00
2017-05-10 22:22:15 +02:00
2017-05-10 22:22:20 +02:00
2017-05-10 22:22:20 +02:00
2017-07-06 08:20:03 +02:00
2017-06-06 14:41:17 -07:00
2017-06-16 09:46:36 -07:00
2017-06-16 09:46:36 -07:00
2017-06-16 09:46:36 -07:00
2017-06-16 09:46:36 -07:00
2017-06-01 15:54:34 -07:00
2017-06-16 09:46:36 -07:00
2017-05-10 22:22:20 +02:00
2017-05-10 22:22:20 +02:00
2017-06-21 16:57:39 -04:00
2017-07-24 17:33:40 +02:00
2017-07-13 18:48:27 -04:00
2017-07-24 14:04:13 -07:00
2017-03-10 11:23:48 -08:00
2017-06-15 22:50:56 -04:00
2017-06-13 11:48:59 -07:00
2017-04-01 13:27:52 +02:00
2017-05-23 21:00:40 +02:00
2017-03-10 11:23:48 -08:00
2017-03-10 11:23:48 -08:00
2017-06-30 07:23:25 +02:00
2017-06-30 07:23:25 +02:00
2017-06-30 07:23:25 +02:00
2017-06-30 07:23:25 +02:00
2017-06-30 07:23:25 +02:00
2017-03-10 11:23:48 -08:00
2017-07-17 23:09:52 +02:00
2017-07-17 23:09:52 +02:00
2017-06-17 19:17:46 +02:00
2017-06-06 14:41:17 -07:00
2017-03-10 11:23:48 -08:00
2017-03-10 11:23:48 -08:00
2017-06-27 17:04:16 -04:00
2017-06-05 17:13:10 -04:00
2017-07-24 14:04:13 -07:00
2017-07-24 14:04:13 -07:00
2017-06-15 22:50:56 -04:00
2017-03-10 11:23:48 -08:00
2017-03-10 19:26:18 +01:00
2016-06-28 21:21:21 +02:00
2016-04-05 11:37:02 +02:00
2016-05-25 09:54:24 +02:00
2017-05-25 19:05:14 +02:00
2016-06-21 10:29:14 +02:00
2017-03-10 11:23:48 -08:00
2017-05-03 19:21:32 +02:00
2015-02-02 21:55:56 +01:00
2017-04-14 22:47:29 +02:00
2016-05-25 09:54:24 +02:00
2017-05-29 08:45:07 -07:00
2017-04-14 22:47:29 +02:00
2017-05-10 22:22:15 +02:00
2017-03-10 11:23:48 -08:00
2017-07-17 09:29:30 -04:00
2017-05-19 23:19:57 -07:00
2017-07-24 14:04:13 -07:00
2017-03-10 11:23:48 -08:00
2017-06-30 14:35:42 +02:00
2017-05-23 21:00:40 +02:00
2017-05-23 21:00:40 +02:00
2017-03-10 11:23:48 -08:00
2017-03-10 11:23:48 -08:00
2017-03-10 11:23:48 -08:00
2017-03-10 11:23:48 -08:00
2017-03-10 11:23:48 -08:00
2017-03-10 11:23:48 -08:00
2017-06-13 11:48:59 -07:00
2017-07-10 12:02:07 -07:00
2017-07-06 08:20:03 +02:00
2017-03-10 11:23:48 -08:00
2015-02-09 18:06:57 +01:00
2015-02-02 21:55:56 +01:00
2017-05-10 22:22:20 +02:00
2017-05-10 22:22:20 +02:00
2017-05-10 22:22:15 +02:00
2017-05-10 22:22:15 +02:00
2016-09-23 08:46:06 +02:00
2017-05-11 15:33:05 -04:00
2017-03-10 11:23:48 -08:00
2017-03-10 11:23:48 -08:00
2017-02-04 00:19:59 +09:00
2017-05-10 22:22:20 +02:00
2017-05-26 04:29:07 -04:00
2017-05-25 20:02:17 +02:00
2017-05-10 22:22:20 +02:00
2017-05-10 22:22:20 +02:00
2017-05-22 16:09:27 -04:00
2017-05-22 16:09:27 -04:00
2016-06-28 21:21:21 +02:00
2017-03-03 16:29:19 -05:00
2017-05-10 22:22:26 +02:00
2017-05-10 22:22:20 +02:00
2017-05-10 22:22:15 +02:00
2017-06-30 07:23:25 +02:00
2017-06-30 07:23:25 +02:00
2017-05-10 22:22:15 +02:00
2017-05-10 22:21:53 +02:00
2017-05-10 22:22:20 +02:00
2017-05-10 22:22:20 +02:00
2017-03-10 11:23:48 -08:00
2017-03-10 11:23:48 -08:00
2017-04-27 17:11:27 +02:00
2017-04-14 22:47:29 +02:00
2016-06-28 21:21:21 +02:00
2016-06-29 10:44:27 +02:00