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 <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Franziska Hinkelmann <[email protected]>
  • 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.