On Mon, Jun 27, 2016 at 3:20 PM, Danny Dorfman <[email protected]> wrote: > Hello Ben, > Actually, I was expecting the current value to be there. As Jochen mentioned > below, it's only valid if it's been previously set within the interceptor. > Is there a way to know the real current value before it's overwritten? > D.
Ah, I think I understand what you mean. I believe the answer is 'no' - the default return value is undefined but there is no way to distinguish between 'not set' and 'prior call to v8::ReturnValue::SetUndefined()' at the API level. It should be possible to add an IsSet() method - I lied by omission; the internal default value is the magic 'the hole' value, which can be used as a discriminator - but I can't comment on whether it would be accepted. You could try filing a CL and see what the V8 team thinks. -- -- 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.
