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 BethGriggs committed Apr 27, 2020
1 parent 4c643c0 commit 95e897e
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 @@ -193,7 +193,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 @@ -253,7 +253,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 95e897e

Please sign in to comment.