@@ -878,6 +878,13 @@ The `'iso-8859-16'` encoding listed in the [WHATWG Encoding Standard][]
878878is not supported.
879879
880880### new TextDecoder([ encoding[ , options]] )
881+ <!-- YAML
882+ added: v8.3.0
883+ changes:
884+ - version: REPLACEME
885+ pr-url: REPLACEME
886+ description: The class is now available on the global object.
887+ -->
881888
882889* ` encoding ` {string} Identifies the ` encoding ` that this ` TextDecoder ` instance
883890 supports. ** Default:** ` 'utf-8' ` .
@@ -893,6 +900,8 @@ is not supported.
893900Creates an new ` TextDecoder ` instance. The ` encoding ` may specify one of the
894901supported encodings or an alias.
895902
903+ The ` TextDecoder ` class is also available on the global object.
904+
896905### textDecoder.decode([ input[ , options]] )
897906
898907* ` input ` {ArrayBuffer|DataView|TypedArray} An ` ArrayBuffer ` , ` DataView ` or
@@ -932,6 +941,10 @@ mark.
932941## Class: util.TextEncoder
933942<!-- YAML
934943added: v8.3.0
944+ changes:
945+ - version: REPLACEME
946+ pr-url: REPLACEME
947+ description: The class is now available on the global object.
935948-->
936949
937950An implementation of the [ WHATWG Encoding Standard] [ ] ` TextEncoder ` API. All
@@ -942,6 +955,8 @@ const encoder = new TextEncoder();
942955const uint8array = encoder .encode (' this is some data' );
943956```
944957
958+ The ` TextEncoder ` class is also available on the global object.
959+
945960### textEncoder.encode([ input] )
946961
947962* ` input ` {string} The text to encode. ** Default:** an empty string.
0 commit comments