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

Unified Diff: include/v8.h

Issue 1367953002: Allow JavaScript accessors on API objects. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: review feedback Created 5 years, 3 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 | « build/features.gypi ('k') | src/api.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 54c6dcd92c9739da6c01da01e4f278a6faa6de45..e19daee1545bc566de8e0d26342e4be77afe29ff 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -4027,6 +4027,13 @@ class V8_EXPORT Template : public Data {
PropertyAttribute attribute = None,
AccessControl settings = DEFAULT);
+#ifdef V8_JS_ACCESSORS
+ void SetAccessorProperty(Local<Name> name,
+ Local<Function> getter = Local<Function>(),
+ Local<Function> setter = Local<Function>(),
+ PropertyAttribute attribute = None);
+#endif // V8_JS_ACCESSORS
+
/**
* Whenever the property with the given name is accessed on objects
* created from this Template the getter and setter callbacks
« no previous file with comments | « build/features.gypi ('k') | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698