Skip to content

Commit

Permalink
src: use using NewStringType
Browse files Browse the repository at this point in the history
PR-URL: #32843
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
  • Loading branch information
rickyes authored and BridgeAR committed Apr 28, 2020
1 parent 27837fe commit 015f33c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/node_os.cc
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ static void GetInterfaceAddresses(const FunctionCallbackInfo<Value>& args) {
// they name the interface from any input that uses UTF-8, which should be
// the most frequent case by far these days.)
name = String::NewFromUtf8(isolate, raw_name,
v8::NewStringType::kNormal).ToLocalChecked();
NewStringType::kNormal).ToLocalChecked();

snprintf(mac.data(),
mac.size(),
Expand Down Expand Up @@ -255,7 +255,7 @@ static void GetHomeDirectory(const FunctionCallbackInfo<Value>& args) {

Local<String> home = String::NewFromUtf8(env->isolate(),
buf,
v8::NewStringType::kNormal,
NewStringType::kNormal,
len).ToLocalChecked();
args.GetReturnValue().Set(home);
}
Expand Down

0 comments on commit 015f33c

Please sign in to comment.