diff options
author | Luigi Pinca <luigipinca@gmail.com> | 2021-08-22 09:01:41 +0300 |
---|---|---|
committer | Node.js GitHub Bot <github-bot@iojs.org> | 2021-08-22 11:08:48 +0300 |
commit | 00738314828074243c9a52a228ab4c68b04259ef (patch) | |
tree | 8b7e1c63dda3a596bbe7763492ae2ea574a5e67a | |
parent | 82ae00cae497cffc5084d11aae8ecdac4843511e (diff) |
doc: move util.toUSVString() outside of deprecated group
Refs: https://github.com/nodejs/node/pull/39814/files#r693445849
PR-URL: https://github.com/nodejs/node/pull/39840
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
-rw-r--r-- | doc/api/util.md | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/doc/api/util.md b/doc/api/util.md index dc47704e0b7..e0912093af3 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -1306,6 +1306,17 @@ const { read, written } = encoder.encodeInto(src, dest); The encoding supported by the `TextEncoder` instance. Always set to `'utf-8'`. +## `util.toUSVString(string)` +<!-- YAML +added: REPLACEME +--> + +* `string` {string} + +Returns the `string` after replacing any surrogate code points +(or equivalently, any unpaired surrogate code units) with the +Unicode "replacement character" U+FFFD. + ## `util.types` <!-- YAML added: v10.0.0 @@ -2492,18 +2503,6 @@ const util = require('util'); util.log('Timestamped message.'); ``` - -### `util.toUSVString(string)` -<!-- YAML -added: REPLACEME ---> - -* `string` {string} - -Returns the `string` after replacing any surrogate code points -(or equivalently, any unpaired surrogate code units) with the -Unicode "replacement character" U+FFFD. - [Common System Errors]: errors.md#errors_common_system_errors [Custom inspection functions on objects]: #util_custom_inspection_functions_on_objects [Custom promisified functions]: #util_custom_promisified_functions |