Re: [v8-users] Need help with handlers in ObjectTemplate.

2018-09-11 Thread Andrei Vinogradov
Result is the same. It tries to execute NamedGetter first. Thanks for your advice, but I still need another solution. I can't remove NamedPropertyHandler in my case. I just need to make NamedPropertyHandler process functions correctly as well or ignore them in any way. вторник, 11 сентября 201

Re: [v8-users] Need help with handlers in ObjectTemplate.

2018-09-11 Thread J Decker
I found it esaier to work with SetAccessorProperty https://v8docs.nodesource.com/node-0.12/db/df7/classv8_1_1_template.html#a25856e3bf1b8b0d3ee7865687a8e6d97 example https://github.com/d3x0r/sack.vfs/blob/master/src/gui/sack_image_module.cc#L134 defines some get/set methods on an image class; tha

[v8-users] Need help with handlers in ObjectTemplate.

2018-09-11 Thread Andrei Vinogradov
Hello. I'm trying to create new template that should match required behaviour but now i'm stuck with NamedPropertyHandler. What I need to achieve: 1. All property access calls should be processed by unified handlers (getter/setter for indexed access and getter/setter for named access). (This par