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