Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Unified Diff: include/v8.h

Issue 2449783006: Add a native data property that replaces itself with a real data property (Closed)
Patch Set: updates Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/accessors.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
*/
« no previous file with comments | « no previous file | src/accessors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698