diff options
author | James M Snell <jasnell@gmail.com> | 2017-06-12 08:25:53 -0700 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2017-07-24 14:04:13 -0700 |
commit | ed21cb1774d3e146f84a94400db0008a940656c3 (patch) | |
tree | 666b947e272b665045994da4476d7aa01bbe418f /tools/icu/icu-generic.gyp | |
parent | 7f5a745e35bec2bde067c2922f6a9146beed99e6 (diff) | |
download | android-node-v8-ed21cb1774d3e146f84a94400db0008a940656c3.tar.gz android-node-v8-ed21cb1774d3e146f84a94400db0008a940656c3.tar.bz2 android-node-v8-ed21cb1774d3e146f84a94400db0008a940656c3.zip |
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>
Diffstat (limited to 'tools/icu/icu-generic.gyp')
-rw-r--r-- | tools/icu/icu-generic.gyp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/tools/icu/icu-generic.gyp b/tools/icu/icu-generic.gyp index 4c2125a043..93d7cd5f6d 100644 --- a/tools/icu/icu-generic.gyp +++ b/tools/icu/icu-generic.gyp @@ -30,15 +30,6 @@ 'type': 'none', 'toolsets': [ 'host', 'target' ], 'direct_dependent_settings': { - 'conditions': [ - [ 'icu_endianness == "l"', { - 'defines': [ - # ICU cannot swap the initial data without this. - # http://bugs.icu-project.org/trac/ticket/11046 - 'UCONFIG_NO_LEGACY_CONVERSION=1' - ], - }], - ], 'defines': [ 'UCONFIG_NO_SERVICE=1', 'UCONFIG_NO_REGULAR_EXPRESSIONS=1', |