Index: include/v8.h |
diff --git a/include/v8.h b/include/v8.h |
index 86db38799b103fc9b61fa9b7bbd993a6bd71186f..87ebfce31165b0f278afded3f9ae164028a63306 100644 |
--- a/include/v8.h |
+++ b/include/v8.h |
@@ -4798,6 +4798,19 @@ class V8_EXPORT ObjectTemplate : public Template { |
*/ |
void SetAccessCheckCallback(AccessCheckCallback callback, |
Local<Value> data = Local<Value>()); |
+ |
+ /** |
+ * Like SetAccessCheckCallback but invokes an interceptor on failed access |
+ * checks instead of looking up all-can-read properties. You can only use |
+ * either this method or SetAccessCheckCallback, but not both at the same |
+ * time. |
+ */ |
+ void SetAccessCheckCallbackAndHandler( |
+ AccessCheckCallback callback, |
+ const NamedPropertyHandlerConfiguration& named_handler, |
+ const IndexedPropertyHandlerConfiguration& indexed_handler, |
+ Local<Value> data = Local<Value>()); |
+ |
/** |
* Gets the number of internal fields for objects generated from |
* this template. |