Skip to content

Commit

Permalink
doc: move util.toUSVString() outside of deprecated group
Browse files Browse the repository at this point in the history
Refs: https://github.com/nodejs/node/pull/39814/files#r693445849

PR-URL: #39840
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
  • Loading branch information
lpinca authored and nodejs-github-bot committed Aug 22, 2021
1 parent 82ae00c commit 0073831
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions doc/api/util.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0073831

Please sign in to comment.