@@ -54,6 +54,7 @@ using v8::Integer;
54
54
using v8::Isolate;
55
55
using v8::Local;
56
56
using v8::Name;
57
+ using v8::NewStringType;
57
58
using v8::PropertyCallbackInfo;
58
59
using v8::String;
59
60
using v8::Uint32;
@@ -135,7 +136,7 @@ void Cwd(const FunctionCallbackInfo<Value>& args) {
135
136
136
137
Local<String> cwd = String::NewFromUtf8 (env->isolate (),
137
138
buf,
138
- v8:: NewStringType::kNormal ,
139
+ NewStringType::kNormal ,
139
140
cwd_len).ToLocalChecked ();
140
141
args.GetReturnValue ().Set (cwd);
141
142
}
@@ -591,7 +592,7 @@ void ProcessTitleGetter(Local<Name> property,
591
592
char buffer[512 ];
592
593
uv_get_process_title (buffer, sizeof (buffer));
593
594
info.GetReturnValue ().Set (String::NewFromUtf8 (info.GetIsolate (), buffer,
594
- v8:: NewStringType::kNormal ).ToLocalChecked ());
595
+ NewStringType::kNormal ).ToLocalChecked ());
595
596
}
596
597
597
598
@@ -616,7 +617,7 @@ void EnvGetter(Local<Name> property,
616
617
const char * val = getenv (*key);
617
618
if (val) {
618
619
return info.GetReturnValue ().Set (String::NewFromUtf8 (isolate, val,
619
- v8:: NewStringType::kNormal ).ToLocalChecked ());
620
+ NewStringType::kNormal ).ToLocalChecked ());
620
621
}
621
622
#else // _WIN32
622
623
node::TwoByteValue key (isolate, property);
@@ -632,7 +633,7 @@ void EnvGetter(Local<Name> property,
632
633
result < arraysize (buffer)) {
633
634
const uint16_t * two_byte_buffer = reinterpret_cast <const uint16_t *>(buffer);
634
635
v8::MaybeLocal<String> rc = String::NewFromTwoByte (
635
- isolate, two_byte_buffer, v8:: NewStringType::kNormal );
636
+ isolate, two_byte_buffer, NewStringType::kNormal );
636
637
if (rc.IsEmpty ()) {
637
638
isolate->ThrowException (ERR_STRING_TOO_LONG (isolate));
638
639
return ;
@@ -744,7 +745,7 @@ void EnvEnumerator(const PropertyCallbackInfo<Array>& info) {
744
745
const char * s = strchr (var, ' =' );
745
746
const int length = s ? s - var : strlen (var);
746
747
env_v[i] =
747
- String::NewFromUtf8 (isolate, var, v8:: NewStringType::kNormal , length)
748
+ String::NewFromUtf8 (isolate, var, NewStringType::kNormal , length)
748
749
.ToLocalChecked ();
749
750
}
750
751
#else // _WIN32
@@ -770,7 +771,7 @@ void EnvEnumerator(const PropertyCallbackInfo<Array>& info) {
770
771
v8::MaybeLocal<String> rc =
771
772
String::NewFromTwoByte (isolate,
772
773
two_byte_buffer,
773
- v8:: NewStringType::kNormal ,
774
+ NewStringType::kNormal ,
774
775
two_byte_buffer_len);
775
776
if (rc.IsEmpty ()) {
776
777
isolate->ThrowException (ERR_STRING_TOO_LONG (isolate));
0 commit comments