Yes, I use SetNamedPropertyHandler. However, I'd like to make the following
distinction:
If I am *not* inside "using", the handler for "a" should return
v8::Undefined (or some other preset value).
If I *am* inside "using", the handler should not return anything at all,
and let V8 determine the value.
Is that possible?
On Monday, April 3, 2017 at 10:51:57 PM UTC+3, Zac Hansen wrote:
>
> Are you using the objecttemplate's setnamedpropertyhandler call? if so,
> are you implementing all the callbacks to say that your CONS object doesn't
> have a property a?
>
> On Monday, April 3, 2017 at 7:25:25 AM UTC-7, Danny Dorfman wrote:
>>
>> Hello there,
>>
>> Is there a way for my interceptor to know that it's running under "with",
>> as in this example:
>>
>> var a = 10;
>> with (new CONS()) { do_something(a); }
>>
>> The problem is, that 'a' is intercepted by the new object, and is
>> rendered undefined. I would like it to use the external 'a' instead.
>>
>> Regards,
>> Danny
>>
>
--
--
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
---
You received this message because you are subscribed to the Google Groups
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.