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 <[email protected]>
Reviewed-By: Yongsheng Zhang <[email protected]>
Reviewed-By: Darshan Sen <[email protected]>
  • Loading branch information
lpinca authored and targos committed Aug 23, 2021
1 parent 6640037 commit 208305f
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 @@ -1304,6 +1304,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 @@ -2490,18 +2501,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 208305f

Please sign in to comment.