Skip to content

Commit 95e897e

Browse files
rickyesBethGriggs
authored andcommitted
src: use using NewStringType
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]>
1 parent 4c643c0 commit 95e897e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/node_os.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ static void GetInterfaceAddresses(const FunctionCallbackInfo<Value>& args) {
193193
// they name the interface from any input that uses UTF-8, which should be
194194
// the most frequent case by far these days.)
195195
name = String::NewFromUtf8(isolate, raw_name,
196-
v8::NewStringType::kNormal).ToLocalChecked();
196+
NewStringType::kNormal).ToLocalChecked();
197197

198198
snprintf(mac.data(),
199199
mac.size(),
@@ -253,7 +253,7 @@ static void GetHomeDirectory(const FunctionCallbackInfo<Value>& args) {
253253

254254
Local<String> home = String::NewFromUtf8(env->isolate(),
255255
buf,
256-
v8::NewStringType::kNormal,
256+
NewStringType::kNormal,
257257
len).ToLocalChecked();
258258
args.GetReturnValue().Set(home);
259259
}

0 commit comments

Comments
 (0)