I don't think it tells why the result of the snippet is : { oncomplete: [Function] }
I still can't tell what is this object... does node.js follow some convention about the context in which a function is called back from a library call ? Jérémy. On 06/06/2012 14:06, Anand George wrote: > This should help... http://howtonode.org/what-is-this > > On Wed, Jun 6, 2012 at 5:23 PM, Jérémy Lal <holi...@gmail.com > <mailto:holi...@gmail.com>> wrote: > > Hi, > > require('fs').stat('file.txt', function(err, result) { > console.log(this); // what is this ? > }); > > Jérémy. > > -- > 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 nodejs@googlegroups.com > <mailto:nodejs@googlegroups.com> > To unsubscribe from this group, send email to > nodejs+unsubscr...@googlegroups.com > <mailto:nodejs%2bunsubscr...@googlegroups.com> > 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 nodejs@googlegroups.com > To unsubscribe from this group, send email to > nodejs+unsubscr...@googlegroups.com > 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 nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en