-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Any idea for using SetHandler
on class?
#47
Comments
I can't help you with your code, @Yangff, but I'd like to 1 this proposal and take it a step further: I'd like a way to intercept all property accesses that aren't handled by other v8pp properties. Use case is simple: I want all other properties to return null to JS and throw a JS exception on set. |
Some time ago I started working on generalized indexed/named property accessor handler in At the present moment the only way is to set accessor handler with |
To achieve this, I added some code to
class.hpp
, so I can callklass.index<Type>()
to make this class array-like. However I don't think it's an elegant way (my code)...Is there any better method to do this?
The text was updated successfully, but these errors were encountered: