Index: include/v8.h |
diff --git a/include/v8.h b/include/v8.h |
index caf56656ae5070d1a7cd65445d4d623541ca7c2d..6f1a9501805909973f6887a72909be66674c988b 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. |
*/ |