@@ -21,6 +21,7 @@ using v8::Integer;
21
21
using v8::Isolate;
22
22
using v8::Local;
23
23
using v8::MaybeLocal;
24
+ using v8::NewStringType;
24
25
using v8::Null;
25
26
using v8::Object;
26
27
using v8::String;
@@ -31,7 +32,7 @@ using v8::Value;
31
32
inline Local<String> Utf8String (Isolate* isolate, const std::string& str) {
32
33
return String::NewFromUtf8 (isolate,
33
34
str.data (),
34
- v8:: NewStringType::kNormal ,
35
+ NewStringType::kNormal ,
35
36
str.length ()).ToLocalChecked ();
36
37
}
37
38
@@ -2159,7 +2160,7 @@ static void Parse(Environment* env,
2159
2160
argv[ERR_ARG_INPUT] =
2160
2161
String::NewFromUtf8 (env->isolate (),
2161
2162
input,
2162
- v8:: NewStringType::kNormal ).ToLocalChecked ();
2163
+ NewStringType::kNormal ).ToLocalChecked ();
2163
2164
error_cb.As <Function>()->Call (context, recv, arraysize (argv), argv)
2164
2165
.FromMaybe (Local<Value>());
2165
2166
}
@@ -2209,7 +2210,7 @@ static void EncodeAuthSet(const FunctionCallbackInfo<Value>& args) {
2209
2210
args.GetReturnValue ().Set (
2210
2211
String::NewFromUtf8 (env->isolate (),
2211
2212
output.c_str (),
2212
- v8:: NewStringType::kNormal ).ToLocalChecked ());
2213
+ NewStringType::kNormal ).ToLocalChecked ());
2213
2214
}
2214
2215
2215
2216
static void ToUSVString (const FunctionCallbackInfo<Value>& args) {
@@ -2243,7 +2244,7 @@ static void ToUSVString(const FunctionCallbackInfo<Value>& args) {
2243
2244
args.GetReturnValue ().Set (
2244
2245
String::NewFromTwoByte (env->isolate (),
2245
2246
*value,
2246
- v8:: NewStringType::kNormal ,
2247
+ NewStringType::kNormal ,
2247
2248
n).ToLocalChecked ());
2248
2249
}
2249
2250
@@ -2264,7 +2265,7 @@ static void DomainToASCII(const FunctionCallbackInfo<Value>& args) {
2264
2265
args.GetReturnValue ().Set (
2265
2266
String::NewFromUtf8 (env->isolate (),
2266
2267
out.c_str (),
2267
- v8:: NewStringType::kNormal ).ToLocalChecked ());
2268
+ NewStringType::kNormal ).ToLocalChecked ());
2268
2269
}
2269
2270
2270
2271
static void DomainToUnicode (const FunctionCallbackInfo<Value>& args) {
@@ -2284,7 +2285,7 @@ static void DomainToUnicode(const FunctionCallbackInfo<Value>& args) {
2284
2285
args.GetReturnValue ().Set (
2285
2286
String::NewFromUtf8 (env->isolate (),
2286
2287
out.c_str (),
2287
- v8:: NewStringType::kNormal ).ToLocalChecked ());
2288
+ NewStringType::kNormal ).ToLocalChecked ());
2288
2289
}
2289
2290
2290
2291
std::string URL::ToFilePath () const {
0 commit comments