Just updated my nodejs to be sure, from 6.8 to 6.10, now it works.. Couldn't find an entry of this in the changelog..
Am 14.02.2012 00:00, schrieb Kevin Swiber: > On Mon, Feb 13, 2012 at 5:49 PM, Phoscur <[email protected] > <mailto:[email protected]>> wrote: > > The object (even in the REPL) I get is empty({}), it should be a > function. > It seems node does not follow windows symlinks. > > > Hmm. Which version are you running? It works for me using v0.6.3. > See below. > > Note: The required module in this example just exports a function that > prints 'hi'. > > C:\dev\projects\nodetest2>dir > > Directory of C:\dev\projects\nodetest2 > > 02/13/2012 05:17 PM <DIR> . > 02/13/2012 05:17 PM <DIR> .. > 02/13/2012 05:16 PM 39 app.js > 02/13/2012 05:17 PM <SYMLINK> nodestuff [..\nodestuff] > 2 File(s) 39 bytes > 2 Dir(s) 1,915,437,056 bytes free > > C:\dev\projects\nodetest2>node > > require('./nodestuff/app') > [Function] > > require('./nodestuff/app').call(this); > hi > undefined > > > > -- > Kevin Swiber > Projects: https://github.com/kevinswiber > Twitter: @kevinswiber > > -- > 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
