doop.c Use new utf8_to_uv_or_die() #22931
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This replaces the older forms. For two of the instances, this gives equivalent functionality, where they croaked if an operand to tr/// was malformed. For the other instances, it didn't croak, but now does. This makes the behavior consistent for tr///, as all the affected instances are supposed to be equivalent. For performance reasons, one or another of the functions would be called, and depending on which one the same input would croak or not.