Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
DomainToUnicode
1 parent 78b721d commit 4e380fdCopy full SHA for 4e380fd
src/node_url.cc
@@ -101,8 +101,7 @@ void BindingData::DomainToUnicode(const FunctionCallbackInfo<Value>& args) {
101
102
std::string input = Utf8Value(env->isolate(), args[0]).ToString();
103
if (input.empty()) {
104
- return args.GetReturnValue().Set(
105
- String::NewFromUtf8(env->isolate(), "").ToLocalChecked());
+ return args.GetReturnValue().Set(FIXED_ONE_BYTE_STRING(env->isolate(), ""));
106
}
107
108
// It is important to have an initial value that contains a special scheme.
0 commit comments