New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lib,src: replace toUSVString with toWellFormed()
#47342
base: main
Are you sure you want to change the base?
Conversation
|
Review requested:
|
cd7df60
to
80a3312
Compare
This comment has been hidden.
This comment has been hidden.
|
Let's wait for #47340 to land to re-run the benchmark. |
|
I've re-run the benchmark: https://ci.nodejs.org/view/Node.js%20benchmark/job/benchmark-node-micro-benchmarks/1315/ |
b8411ac
to
357ef37
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
|
|
||
| [`util.toUSVString()`][] is replaced with [`String.prototype.toWellFormed`][] | ||
| after V8 11.3. It is recommended to use the built-in function for performance | ||
| reasons. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should mention that now it is just an alias.


We can't add ToWellFormed to primordials yet, because it's behind a harmony flag.
Fixes #47328, depends on V8 11.3
Benchmark CI: https://ci.nodejs.org/view/Node.js%20benchmark/job/benchmark-node-micro-benchmarks/1315/
Added
notable-changelabel due to the doc-only deprecation oftoUSVString