On 26/09/2013, at 09:43, Ashish Negi wrote:

> @Ben Thank you. It took me a while to understand what did you meant 
> "require() is not in global function".
> 
> @Jorge Thank you too. After reading your post it hit me that i should do 
> global.request = request;
> 
> That just solves the problem that Ben has said. And it is working now.

Oh, well... then forget my previous 2 messages :-)

> Last question though, Is there any side-effects of this ?

Yes:

1.- Globals considered harmful.

If what your module needs is a reference to `require`, there are other ways to 
do it, without polluting the global scope.

[] Want to know more

:-)
-- 
( Jorge )().

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

--- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to