Commit 3a0a24dc authored by franzih's avatar franzih Committed by Commit bot

[api] Improve documentation for SetNamedPropertyHandler().

BUG=v8:5260

Review-Url: https://codereview.chromium.org/2268673002
Cr-Commit-Position: refs/heads/master@{#38823}
parent 300a8f97
...@@ -4756,8 +4756,10 @@ class V8_EXPORT ObjectTemplate : public Template { ...@@ -4756,8 +4756,10 @@ class V8_EXPORT ObjectTemplate : public Template {
* from this object template, the provided callback is invoked instead of * from this object template, the provided callback is invoked instead of
* accessing the property directly on the JavaScript object. * accessing the property directly on the JavaScript object.
* *
* Note that new code should use the second version that can intercept * SetNamedPropertyHandler() is different from SetHandler(), in
* symbol-named properties as well as string-named properties. * that the latter can intercept symbol-named properties as well as
* string-named properties when called with a
* NamedPropertyHandlerConfiguration. New code should use SetHandler().
* *
* \param getter The callback to invoke when getting a property. * \param getter The callback to invoke when getting a property.
* \param setter The callback to invoke when setting a property. * \param setter The callback to invoke when setting a property.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment