@@ -10,6 +10,8 @@ namespace node {
10
10
using v8::Array;
11
11
using v8::Boolean ;
12
12
using v8::Context;
13
+ using v8::DontDelete;
14
+ using v8::DontEnum;
13
15
using v8::EscapableHandleScope;
14
16
using v8::HandleScope;
15
17
using v8::Integer;
@@ -26,6 +28,7 @@ using v8::Object;
26
28
using v8::ObjectTemplate;
27
29
using v8::PropertyCallbackInfo;
28
30
using v8::PropertyHandlerFlags;
31
+ using v8::ReadOnly;
29
32
using v8::String;
30
33
using v8::Value;
31
34
@@ -93,10 +96,10 @@ Maybe<std::string> RealEnvStore::Get(const char* key) const {
93
96
}
94
97
95
98
if (ret >= 0 ) { // Env key value fetch success.
96
- return v8:: Just (std::string (*val, init_sz));
99
+ return Just (std::string (*val, init_sz));
97
100
}
98
101
99
- return v8:: Nothing<std::string>();
102
+ return Nothing<std::string>();
100
103
}
101
104
102
105
MaybeLocal<String> RealEnvStore::Get (Isolate* isolate,
@@ -141,9 +144,9 @@ int32_t RealEnvStore::Query(const char* key) const {
141
144
142
145
#ifdef _WIN32
143
146
if (key[0 ] == ' =' ) {
144
- return static_cast <int32_t >(v8:: ReadOnly) |
145
- static_cast <int32_t >(v8:: DontDelete) |
146
- static_cast <int32_t >(v8:: DontEnum);
147
+ return static_cast <int32_t >(ReadOnly) |
148
+ static_cast <int32_t >(DontDelete) |
149
+ static_cast <int32_t >(DontEnum);
147
150
}
148
151
#endif
149
152
@@ -191,7 +194,7 @@ Local<Array> RealEnvStore::Enumerate(Isolate* isolate) const {
191
194
return Array::New (isolate, env_v.out (), env_v_index);
192
195
}
193
196
194
- std::shared_ptr<KVStore> KVStore::Clone (v8:: Isolate* isolate) const {
197
+ std::shared_ptr<KVStore> KVStore::Clone (Isolate* isolate) const {
195
198
HandleScope handle_scope (isolate);
196
199
Local<Context> context = isolate->GetCurrentContext ();
197
200
@@ -211,7 +214,7 @@ std::shared_ptr<KVStore> KVStore::Clone(v8::Isolate* isolate) const {
211
214
Maybe<std::string> MapKVStore::Get (const char * key) const {
212
215
Mutex::ScopedLock lock (mutex_);
213
216
auto it = map_.find (key);
214
- return it == map_.end () ? v8:: Nothing<std::string>() : v8:: Just (it->second );
217
+ return it == map_.end () ? Nothing<std::string>() : Just (it->second );
215
218
}
216
219
217
220
MaybeLocal<String> MapKVStore::Get (Isolate* isolate, Local<String> key) const {
0 commit comments