summaryrefslogtreecommitdiff
path: root/src/stream_base.cc
diff options
context:
space:
mode:
authorgengjiawen <technicalcute@gmail.com>2019-03-15 20:53:22 +0800
committerZYSzys <zyszys98@gmail.com>2019-03-18 20:22:13 +0800
commitcf51ee4dcf6981434e3a461bb4439a5a41d7cd9d (patch)
tree508742496aee22f629c85c0d42feda4ee1a07f73 /src/stream_base.cc
parent174da74701b28eeeb70a59045f2f1f44839cda51 (diff)
downloadandroid-node-v8-cf51ee4dcf6981434e3a461bb4439a5a41d7cd9d.tar.gz
android-node-v8-cf51ee4dcf6981434e3a461bb4439a5a41d7cd9d.tar.bz2
android-node-v8-cf51ee4dcf6981434e3a461bb4439a5a41d7cd9d.zip
src: elevate v8 namespaces for PropertyAttribute
PR-URL: https://github.com/nodejs/node/pull/26681 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Diffstat (limited to 'src/stream_base.cc')
-rw-r--r--src/stream_base.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/stream_base.cc b/src/stream_base.cc
index 7aef9ba96d..3874d2d9af 100644
--- a/src/stream_base.cc
+++ b/src/stream_base.cc
@@ -18,12 +18,15 @@ namespace node {
using v8::Array;
using v8::ArrayBuffer;
using v8::Context;
+using v8::DontDelete;
+using v8::DontEnum;
using v8::External;
using v8::FunctionCallbackInfo;
using v8::HandleScope;
using v8::Integer;
using v8::Local;
using v8::Object;
+using v8::ReadOnly;
using v8::String;
using v8::Value;
@@ -347,8 +350,8 @@ void StreamBase::AddMethod(Environment* env,
void StreamBase::AddMethods(Environment* env, Local<FunctionTemplate> t) {
HandleScope scope(env->isolate());
- enum PropertyAttribute attributes = static_cast<PropertyAttribute>(
- v8::ReadOnly | v8::DontDelete | v8::DontEnum);
+ enum PropertyAttribute attributes =
+ static_cast<PropertyAttribute>(ReadOnly | DontDelete | DontEnum);
Local<Signature> sig = Signature::New(env->isolate(), t);
AddMethod(env, sig, attributes, t, GetFD, env->fd_string());