Index: include/v8.h |
diff --git a/include/v8.h b/include/v8.h |
index 2847c3b515713da28ec58441d24cc373d1538ec2..c24445f0d94e27c50909afc111637724e60388ea 100644 |
--- a/include/v8.h |
+++ b/include/v8.h |
@@ -4686,6 +4686,14 @@ class V8_EXPORT Template : public Data { |
AccessControl settings = DEFAULT); |
/** |
+ * Like SetNativeDataProperty, but V8 will replace the native data property |
+ * with a real data property on first access. |
+ */ |
+ void SetLazyDataProperty(Local<Name> name, AccessorNameGetterCallback getter, |
+ Local<Value> data = Local<Value>(), |
+ PropertyAttribute attribute = None); |
+ |
+ /** |
* During template instantiation, sets the value with the intrinsic property |
* from the correct context. |
*/ |