From 17f1202cac2fd7196ec1af5dbc1d9698d5376a7b Mon Sep 17 00:00:00 2001 From: rickyes Date: Tue, 14 Apr 2020 20:53:45 +0800 Subject: [PATCH] src: use using NewStringType PR-URL: https://github.com/nodejs/node/pull/32843 Reviewed-By: Colin Ihrig Reviewed-By: Anna Henningsen Reviewed-By: Richard Lau Reviewed-By: James M Snell Reviewed-By: Ruben Bridgewater Reviewed-By: Gireesh Punathil Reviewed-By: Franziska Hinkelmann --- src/node_os.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/node_os.cc b/src/node_os.cc index 8f1ca4f0c3ff77..bd61b4c87c0e1a 100644 --- a/src/node_os.cc +++ b/src/node_os.cc @@ -193,7 +193,7 @@ static void GetInterfaceAddresses(const FunctionCallbackInfo& 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(), @@ -253,7 +253,7 @@ static void GetHomeDirectory(const FunctionCallbackInfo& args) { Local home = String::NewFromUtf8(env->isolate(), buf, - v8::NewStringType::kNormal, + NewStringType::kNormal, len).ToLocalChecked(); args.GetReturnValue().Set(home); }