mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
lib,src: replace toUSVString with toWellFormed()
PR-URL: https://github.com/nodejs/node/pull/47342 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
This commit is contained in:
parent
2fa9503fee
commit
01dae5f877
9 changed files with 31 additions and 128 deletions
|
@ -44,6 +44,7 @@ const {
|
|||
ObjectValues,
|
||||
ReflectApply,
|
||||
StringPrototypePadStart,
|
||||
StringPrototypeToWellFormed,
|
||||
} = primordials;
|
||||
|
||||
const {
|
||||
|
@ -75,7 +76,6 @@ const {
|
|||
getSystemErrorMap,
|
||||
getSystemErrorName: internalErrorName,
|
||||
promisify,
|
||||
toUSVString,
|
||||
defineLazyProperties,
|
||||
} = require('internal/util');
|
||||
|
||||
|
@ -452,7 +452,9 @@ module.exports = {
|
|||
'DEP0059'),
|
||||
promisify,
|
||||
stripVTControlCharacters,
|
||||
toUSVString,
|
||||
toUSVString(input) {
|
||||
return StringPrototypeToWellFormed(`${input}`);
|
||||
},
|
||||
get transferableAbortSignal() {
|
||||
return lazyAbortController().transferableAbortSignal;
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue