| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Review requested:
|
Sorry, something went wrong.
Sorry, something went wrong.
Sorry, something went wrong.
| auto wrap = std::make_unique<Wrap>(channel, req_wrap_obj); | ||
|
|
||
| node::Utf8Value name(env->isolate(), string); | ||
| auto plain_name = |
There was a problem hiding this comment.
I am not sure this code is safe because it appears that temporary objects are created, and they go out of scope. The result of node::Utf8Value is converted to a string_view, but a string_view pointing at what instance? It is unclear to me.
I recommend breaking this down...
Local<String> string = args[1].As<String>(); node::Utf8Value utf8name(env->isolate(), string); std::string name = ada::idna::to_ascii(utf8name.ToStringView());
Sorry, something went wrong.
There was a problem hiding this comment.
@lemire Would you like to takeover this pull request? Unfortunately, I can't complete it soon.
Sorry, something went wrong.
There was a problem hiding this comment.
Sorry, something went wrong.
|
Closing in favor of @lemire 's pull request |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Fixes #48262
cc @targos @ShogunPanda