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 targos committed Sep 4, 2021
1 parent 8eb1135 commit 469190d
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 @@ -1308,6 +1308,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 @@ -2468,18 +2479,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 469190d

Please sign in to comment.