Skip to content

Commit 015f33c

Browse files
rickyesBridgeAR
authored andcommitted
src: use using NewStringType
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>
1 parent 27837fe commit 015f33c

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
@@ -195,7 +195,7 @@ static void GetInterfaceAddresses(const FunctionCallbackInfo<Value>& args) {
195195
// they name the interface from any input that uses UTF-8, which should be
196196
// the most frequent case by far these days.)
197197
name = String::NewFromUtf8(isolate, raw_name,
198-
v8::NewStringType::kNormal).ToLocalChecked();
198+
NewStringType::kNormal).ToLocalChecked();
199199

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

256256
Local<String> home = String::NewFromUtf8(env->isolate(),
257257
buf,
258-
v8::NewStringType::kNormal,
258+
NewStringType::kNormal,
259259
len).ToLocalChecked();
260260
args.GetReturnValue().Set(home);
261261
}

0 commit comments

Comments
 (0)