Index: include/v8.h |
diff --git a/include/v8.h b/include/v8.h |
index c93ee238585f5a86527532eb6e927ac7906a9ccb..144864222ce621a04160b65675506940c357d252 100644 |
--- a/include/v8.h |
+++ b/include/v8.h |
@@ -3236,12 +3236,46 @@ class FunctionCallbackInfo { |
template<typename T> |
class PropertyCallbackInfo { |
public: |
+ /** |
+ * \return The isolate of the property access. |
+ */ |
V8_INLINE Isolate* GetIsolate() const; |
+ |
+ /** |
+ * \return The data set in the configuration, i.e., in |
+ * `NamedPropertyHandlerConfiguration` or |
+ * `IndexedPropertyHandlerConfiguration.` |
+ */ |
V8_INLINE Local<Value> Data() const; |
+ |
+ /** |
+ * \return The receiver, i.e., the object on which the property access was |
+ * intercepted. |
Toon Verwaest
2016/08/23 13:28:34
I guess the explanation is good enough, but we did
Franzi
2016/08/24 09:04:05
IMHO poor documentation is worse than no documenta
|
+ */ |
V8_INLINE Local<Object> This() const; |
+ |
+ /** |
+ * \return The object in the prototype chain of the receiver that has the |
+ * interceptor. Suppose you have `x` and its prototype is `y`, and `y` |
+ * has an interceptor. Then `info.This()` is `x` and `info.Holder()` is `y`. |
Toon Verwaest
2016/08/23 13:28:34
Holder could be a hidden object (the global object
Franzi
2016/08/24 09:04:05
Added a comment about the hidden object and a warn
|
+ */ |
V8_INLINE Local<Object> Holder() const; |
+ |
+ /** |
+ * \return The return value of the callback. |
+ * Can be changed by calling Set(). |
+ * \code |
+ * info.GetReturnValue().Set(...) |
+ * \endcode |
+ */ |
V8_INLINE ReturnValue<T> GetReturnValue() const; |
+ |
+ /** |
+ * \return True, if the intercepted function should |
Toon Verwaest
2016/08/23 13:28:34
drop the , after True
Franzi
2016/08/24 09:04:05
Done.
|
+ * throw if an error occurs. Usually, `true` corresponds to `'use strict.'` |
Toon Verwaest
2016/08/23 13:28:34
It's false if Reflect.get and friends are used; th
Franzi
2016/08/24 09:04:05
Done.
|
+ */ |
V8_INLINE bool ShouldThrowOnError() const; |
+ |
// This shouldn't be public, but the arm compiler needs it. |
static const int kArgsLength = 7; |