Index: include/v8.h |
diff --git a/include/v8.h b/include/v8.h |
index bcaf954df39f3f7548b6df2126e04e6a540bdf05..931ea0aa320570edb09b3f12df33517095cc444c 100644 |
--- a/include/v8.h |
+++ b/include/v8.h |
@@ -3915,6 +3915,9 @@ class V8_EXPORT FunctionTemplate : public Template { |
}; |
+enum class PropertyHandlerFlags { kNone = 0, kAllCanRead = 1 }; |
+ |
+ |
struct NamedPropertyHandlerConfiguration { |
NamedPropertyHandlerConfiguration( |
/** Note: getter is required **/ |
@@ -3923,13 +3926,15 @@ struct NamedPropertyHandlerConfiguration { |
GenericNamedPropertyQueryCallback query = 0, |
GenericNamedPropertyDeleterCallback deleter = 0, |
GenericNamedPropertyEnumeratorCallback enumerator = 0, |
- Handle<Value> data = Handle<Value>()) |
+ Handle<Value> data = Handle<Value>(), |
+ PropertyHandlerFlags flags = PropertyHandlerFlags::kNone) |
: getter(getter), |
setter(setter), |
query(query), |
deleter(deleter), |
enumerator(enumerator), |
- data(data) {} |
+ data(data), |
+ flags(flags) {} |
GenericNamedPropertyGetterCallback getter; |
GenericNamedPropertySetterCallback setter; |
@@ -3937,6 +3942,7 @@ struct NamedPropertyHandlerConfiguration { |
GenericNamedPropertyDeleterCallback deleter; |
GenericNamedPropertyEnumeratorCallback enumerator; |
Handle<Value> data; |
+ PropertyHandlerFlags flags; |
}; |
@@ -3948,13 +3954,15 @@ struct IndexedPropertyHandlerConfiguration { |
IndexedPropertyQueryCallback query = 0, |
IndexedPropertyDeleterCallback deleter = 0, |
IndexedPropertyEnumeratorCallback enumerator = 0, |
- Handle<Value> data = Handle<Value>()) |
+ Handle<Value> data = Handle<Value>(), |
+ PropertyHandlerFlags flags = PropertyHandlerFlags::kNone) |
: getter(getter), |
setter(setter), |
query(query), |
deleter(deleter), |
enumerator(enumerator), |
- data(data) {} |
+ data(data), |
+ flags(flags) {} |
IndexedPropertyGetterCallback getter; |
IndexedPropertySetterCallback setter; |
@@ -3962,6 +3970,7 @@ struct IndexedPropertyHandlerConfiguration { |
IndexedPropertyDeleterCallback deleter; |
IndexedPropertyEnumeratorCallback enumerator; |
Handle<Value> data; |
+ PropertyHandlerFlags flags; |
}; |