summaryrefslogtreecommitdiff
path: root/src/node_file.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_file.cc')
-rw-r--r--src/node_file.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/node_file.cc b/src/node_file.cc
index e153a8bb0d..95a239ee52 100644
--- a/src/node_file.cc
+++ b/src/node_file.cc
@@ -53,6 +53,7 @@ namespace fs {
using v8::Array;
using v8::BigUint64Array;
using v8::Context;
+using v8::DontDelete;
using v8::EscapableHandleScope;
using v8::Float64Array;
using v8::Function;
@@ -68,6 +69,8 @@ using v8::Number;
using v8::Object;
using v8::ObjectTemplate;
using v8::Promise;
+using v8::PropertyAttribute;
+using v8::ReadOnly;
using v8::String;
using v8::Symbol;
using v8::Uint32;
@@ -120,8 +123,8 @@ FileHandle* FileHandle::New(Environment* env, int fd, Local<Object> obj) {
.ToLocal(&obj)) {
return nullptr;
}
- v8::PropertyAttribute attr =
- static_cast<v8::PropertyAttribute>(v8::ReadOnly | v8::DontDelete);
+ PropertyAttribute attr =
+ static_cast<PropertyAttribute>(ReadOnly | DontDelete);
if (obj->DefineOwnProperty(env->context(),
env->fd_string(),
Integer::New(env->isolate(), fd),