At top level "this" is a reference to exports object (and has nothing in common with global scope ):
https://github.com/joyent/node/blob/v0.12/lib/module.js#L460 On Monday, 9 February 2015 14:34:11 UTC+11, Leo Cono wrote: > > How do you do reflection with Node.js since "this" object is empty? > -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: 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 unsubscribe from this group and stop receiving emails from it, send an email to nodejs+unsubscr...@googlegroups.com. To post to this group, send email to nodejs@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/e7de043f-b788-482c-8188-42b4df5a0c2a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.