Skip to content

Commit 05059a2

Browse files
rickyestargos
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 2093f13 commit 05059a2

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

203203
snprintf(mac.data(),
204204
mac.size(),
@@ -258,7 +258,7 @@ static void GetHomeDirectory(const FunctionCallbackInfo<Value>& args) {
258258

259259
Local<String> home = String::NewFromUtf8(env->isolate(),
260260
buf,
261-
v8::NewStringType::kNormal,
261+
NewStringType::kNormal,
262262
len).ToLocalChecked();
263263
args.GetReturnValue().Set(home);
264264
}

0 commit comments

Comments
 (0)