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

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. Also add .gyp support for flag. 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
Index: include/v8.h
diff --git a/include/v8.h b/include/v8.h
index 54c6dcd92c9739da6c01da01e4f278a6faa6de45..6402c3ef709937e53e46b6eff366efbb153124b2 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -4027,6 +4027,14 @@ 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,
+ AccessControl settings = DEFAULT);
+#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') | test/cctest/test-api-accessors.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698