@@ -6,17 +6,23 @@ namespace util { |
6 | 6 |
|
7 | 7 | using v8::ALL_PROPERTIES; |
8 | 8 | using v8::Array; |
| 9 | +using v8::Boolean; |
9 | 10 | using v8::Context; |
10 | 11 | using v8::FunctionCallbackInfo; |
| 12 | +using v8::IndexFilter; |
11 | 13 | using v8::Integer; |
| 14 | +using v8::KeyCollectionMode; |
12 | 15 | using v8::Local; |
| 16 | +using v8::NewStringType; |
13 | 17 | using v8::Object; |
14 | 18 | using v8::ONLY_CONFIGURABLE; |
15 | 19 | using v8::ONLY_ENUMERABLE; |
16 | 20 | using v8::ONLY_WRITABLE; |
17 | 21 | using v8::Private; |
18 | 22 | using v8::Promise; |
| 23 | +using v8::PropertyFilter; |
19 | 24 | using v8::Proxy; |
| 25 | +using v8::ReadOnly; |
20 | 26 | using v8::SKIP_STRINGS; |
21 | 27 | using v8::SKIP_SYMBOLS; |
22 | 28 | using v8::String; |
@@ -35,13 +41,13 @@ static void GetOwnNonIndexProperties( |
35 | 41 |
|
36 | 42 | Local<Array> properties; |
37 | 43 |
|
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()); |
40 | 46 |
|
41 | 47 | if (!object->GetPropertyNames( |
42 | | - context, v8::KeyCollectionMode::kOwnOnly, |
| 48 | + context, KeyCollectionMode::kOwnOnly, |
43 | 49 | filter, |
44 | | - v8::IndexFilter::kSkipIndices) |
| 50 | + IndexFilter::kSkipIndices) |
45 | 51 | .ToLocal(&properties)) { |
46 | 52 | return; |
47 | 53 | } |
@@ -94,7 +100,7 @@ static void PreviewEntries(const FunctionCallbackInfo<Value>& args) { |
94 | 100 | return args.GetReturnValue().Set(entries); |
95 | 101 | Local<Array> ret = Array::New(env->isolate(), 2); |
96 | 102 | 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)) |
98 | 104 | .FromJust(); |
99 | 105 | return args.GetReturnValue().Set(ret); |
100 | 106 | } |
@@ -169,7 +175,7 @@ void SafeGetenv(const FunctionCallbackInfo<Value>& args) { |
169 | 175 | args.GetReturnValue() |
170 | 176 | .Set(String::NewFromUtf8( |
171 | 177 | args.GetIsolate(), text.c_str(), |
172 | | - v8::NewStringType::kNormal).ToLocalChecked()); |
| 178 | + NewStringType::kNormal).ToLocalChecked()); |
173 | 179 | } |
174 | 180 |
|
175 | 181 | void Initialize(Local<Object> target, |
@@ -191,7 +197,7 @@ void Initialize(Local<Object> target, |
191 | 197 | env->context(), |
192 | 198 | OneByteString(env->isolate(), "pushValToArrayMax"), |
193 | 199 | Integer::NewFromUnsigned(env->isolate(), NODE_PUSH_VAL_TO_ARRAY_MAX), |
194 | | - v8::ReadOnly).FromJust(); |
| 200 | + ReadOnly).FromJust(); |
195 | 201 |
|
196 | 202 | #define V(name) \ |
197 | 203 | target->Set(context, \ |
|