How do you do reflection with Node.js since "this" object is empty?

90 views
Skip to first unread message

Leo Cono

unread,
Feb 8, 2015, 10:34:11 PM2/8/15
to nod...@googlegroups.com
How do you do reflection with Node.js since "this" object is empty?

Ryan Schmidt

unread,
Feb 8, 2015, 10:49:48 PM2/8/15
to nod...@googlegroups.com

On Feb 8, 2015, at 9:34 PM, Leo Cono wrote:

> How do you do reflection with Node.js since "this" object is empty?

What do you mean by "reflection"? What are you expecting the "this" object to be?



Andrey

unread,
Feb 8, 2015, 10:51:54 PM2/8/15
to nod...@googlegroups.com
At top level "this" is a reference to exports object (and has nothing in common with global scope ):

Reply all
Reply to author
Forward
0 new messages