Callee is the "currently executing function" according to JavaScript 1.2 /
ECMA 3

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/arguments/callee

On Fri, Sep 12, 2014 at 7:39 AM, Ben Noordhuis <[email protected]> wrote:

> On Fri, Sep 12, 2014 at 6:25 AM, Jane Chen <[email protected]> wrote:
> > What's the difference between This() and Holder() in
> FunctionCallbackInfo?
> > What does Callee() return?  Can you show it with a JavaScript example?
>
> .Callee() is the JS function that called your API function.  It's
> equivalent to the (deprecated) arguments.callee property.
>
> .This() and .Holder() are often identical.  The only time (that I know
> of) when they are different is when instantiating objects that have a
> prototypical inheritance chain:
>
>   function F() {}
>   F.prototype = g;
>   var f = new F;
>   f.x = 42;
>
> Assume |g| is instantiated from an ObjectTemplate with a setter for
> |x|.  The last line invokes the setter with .This() pointing to |f|
> and .Holder() pointing to |g|.
>
> --
> --
> 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.
>

-- 
-- 
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.

Reply via email to