diff options
author | rickyes <mail@zhoumq.cn> | 2020-04-14 15:53:45 +0300 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2020-04-23 19:11:02 +0300 |
commit | 17f1202cac2fd7196ec1af5dbc1d9698d5376a7b (patch) | |
tree | feb6082de3f22bd5200777a73cd03f1cc0740549 /src/node_os.cc | |
parent | 1cc1ca429795c45db03e6446005a42fd9b51de15 (diff) |
src: use using NewStringType
PR-URL: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'src/node_os.cc')
-rw-r--r-- | src/node_os.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node_os.cc b/src/node_os.cc index 8f1ca4f0c3f..bd61b4c87c0 100644 --- a/src/node_os.cc +++ b/src/node_os.cc @@ -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(), @@ -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); } |