ReturnValue::Get only tells you what the return value you previously have
set is.

Ideally, you use a non-masking interceptor. In that case, you know that the
current value is not defined.

best
-jochen

On Mon, Jun 27, 2016 at 11:24 AM Ben Noordhuis <i...@bnoordhuis.nl> wrote:

> On Sun, Jun 26, 2016 at 3:04 PM, Danny Dorfman <wilderness...@gmail.com>
> wrote:
> > Hi there,
> >
> > I am writing some interceptor code for my objects, and I was wondering,
> > whether it was possible to know,
> > what is the current value for the property, before it's overwritten by
> > args.GetReturnValue().Set(whatever).
> >
> > I need something like args.GetReturnValue().Get(), but there is no such
> > method.
>
> A Get() method was added a few months ago.  It's available in V8 5.2.
>
> --
> --
> v8-users mailing list
> v8-users@googlegroups.com
> 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 v8-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
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 v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to