diff options
author | Maya Anilson <manilson@yahoo.in> | 2018-11-17 15:29:15 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2018-11-21 01:51:00 +0300 |
commit | 77c2cf93cce8dfcb92dcd57f3c29b89704672eb4 (patch) | |
tree | a1cabb767cd8f0bee9f2252b11d610de0a67d4b1 /src/node_i18n.cc | |
parent | 67c092127e06208df7087730d3a48de2cc2fe89a (diff) |
src: elevate namespaces of repeated artifacts
PR-URL: https://github.com/nodejs/node/pull/24429
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Diffstat (limited to 'src/node_i18n.cc')
-rw-r--r-- | src/node_i18n.cc | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/node_i18n.cc b/src/node_i18n.cc index fda53cc6d4a..d2a8c381820 100644 --- a/src/node_i18n.cc +++ b/src/node_i18n.cc @@ -91,6 +91,7 @@ using v8::Int32; using v8::Isolate; using v8::Local; using v8::MaybeLocal; +using v8::NewStringType; using v8::Object; using v8::ObjectTemplate; using v8::String; @@ -257,7 +258,7 @@ class ConverterObject : public BaseObject, Converter { protected: ConverterObject(Environment* env, - v8::Local<v8::Object> wrap, + Local<Object> wrap, UConverter* converter, bool ignoreBOM, const char* sub = nullptr) : @@ -506,7 +507,7 @@ void ICUErrorName(const FunctionCallbackInfo<Value>& args) { args.GetReturnValue().Set( String::NewFromUtf8(env->isolate(), u_errorName(status), - v8::NewStringType::kNormal).ToLocalChecked()); + NewStringType::kNormal).ToLocalChecked()); } #define TYPE_ICU "icu" @@ -552,7 +553,7 @@ void GetVersion(const FunctionCallbackInfo<Value>& args) { TYPE_ICU "," TYPE_UNICODE "," TYPE_CLDR "," - TYPE_TZ, v8::NewStringType::kNormal).ToLocalChecked()); + TYPE_TZ, NewStringType::kNormal).ToLocalChecked()); } else { CHECK_GE(args.Length(), 1); CHECK(args[0]->IsString()); @@ -565,7 +566,7 @@ void GetVersion(const FunctionCallbackInfo<Value>& args) { // Success. args.GetReturnValue().Set( String::NewFromUtf8(env->isolate(), - versionString, v8::NewStringType::kNormal).ToLocalChecked()); + versionString, NewStringType::kNormal).ToLocalChecked()); } } } @@ -722,7 +723,7 @@ static void ToUnicode(const FunctionCallbackInfo<Value>& args) { args.GetReturnValue().Set( String::NewFromUtf8(env->isolate(), *buf, - v8::NewStringType::kNormal, + NewStringType::kNormal, len).ToLocalChecked()); } @@ -745,7 +746,7 @@ static void ToASCII(const FunctionCallbackInfo<Value>& args) { args.GetReturnValue().Set( String::NewFromUtf8(env->isolate(), *buf, - v8::NewStringType::kNormal, + NewStringType::kNormal, len).ToLocalChecked()); } |