@@ -6,17 +6,23 @@ namespace util {
66
77using v8::ALL_PROPERTIES;
88using v8::Array;
9+ using v8::Boolean;
910using v8::Context;
1011using v8::FunctionCallbackInfo;
12+ using v8::IndexFilter;
1113using v8::Integer;
14+ using v8::KeyCollectionMode;
1215using v8::Local;
16+ using v8::NewStringType;
1317using v8::Object;
1418using v8::ONLY_CONFIGURABLE;
1519using v8::ONLY_ENUMERABLE;
1620using v8::ONLY_WRITABLE;
1721using v8::Private;
1822using v8::Promise;
23+ using v8::PropertyFilter;
1924using v8::Proxy;
25+ using v8::ReadOnly;
2026using v8::SKIP_STRINGS;
2127using v8::SKIP_SYMBOLS;
2228using v8::String;
@@ -35,13 +41,13 @@ static void GetOwnNonIndexProperties(
3541
3642 Local<Array> properties;
3743
38- v8:: PropertyFilter filter =
39- static_cast <v8:: PropertyFilter>(args[1 ].As <Uint32>()->Value ());
44+ PropertyFilter filter =
45+ static_cast <PropertyFilter>(args[1 ].As <Uint32>()->Value ());
4046
4147 if (!object->GetPropertyNames (
42- context, v8:: KeyCollectionMode::kOwnOnly ,
48+ context, KeyCollectionMode::kOwnOnly ,
4349 filter,
44- v8:: IndexFilter::kSkipIndices )
50+ IndexFilter::kSkipIndices )
4551 .ToLocal (&properties)) {
4652 return ;
4753 }
@@ -94,7 +100,7 @@ static void PreviewEntries(const FunctionCallbackInfo<Value>& args) {
94100 return args.GetReturnValue ().Set (entries);
95101 Local<Array> ret = Array::New (env->isolate (), 2 );
96102 ret->Set (env->context (), 0 , entries).FromJust ();
97- ret->Set (env->context (), 1 , v8:: Boolean::New (env->isolate (), is_key_value))
103+ ret->Set (env->context (), 1 , Boolean::New (env->isolate (), is_key_value))
98104 .FromJust ();
99105 return args.GetReturnValue ().Set (ret);
100106}
@@ -169,7 +175,7 @@ void SafeGetenv(const FunctionCallbackInfo<Value>& args) {
169175 args.GetReturnValue ()
170176 .Set (String::NewFromUtf8 (
171177 args.GetIsolate (), text.c_str (),
172- v8:: NewStringType::kNormal ).ToLocalChecked ());
178+ NewStringType::kNormal ).ToLocalChecked ());
173179}
174180
175181void Initialize (Local<Object> target,
@@ -191,7 +197,7 @@ void Initialize(Local<Object> target,
191197 env->context (),
192198 OneByteString (env->isolate (), " pushValToArrayMax" ),
193199 Integer::NewFromUnsigned (env->isolate (), NODE_PUSH_VAL_TO_ARRAY_MAX),
194- v8:: ReadOnly).FromJust ();
200+ ReadOnly).FromJust ();
195201
196202#define V (name ) \
197203 target->Set (context, \
0 commit comments