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