On Wed, Jun 6, 2012 at 3:55 PM, Ben Noordhuis <[email protected]> wrote:

> On Wed, Jun 6, 2012 at 1:53 PM, Jérémy Lal <[email protected]> wrote:
> > Hi,
> >
> > require('fs').stat('file.txt', function(err, result) {
> >  console.log(this); // what is this ?
> > });
>
> this === global as of now[1].
>
> [1] https://github.com/joyent/node/commit/463d6ba



And of course, v8 is ES5.1 compliant, so you can just use
Function.prototype.bind to bind an explicit scope of your choice


Rick


>
>
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to