Created
December 26, 2009 16:15
-
-
Save ecavazos/263979 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var sys = require('sys'); | |
| var b; | |
| try { | |
| //var b = require('./../module_b'); | |
| var b = require('../module_b'); | |
| } catch(e) { | |
| sys.puts(e); | |
| } | |
| exports.crap = function() { | |
| return 'crap'; | |
| }; | |
| // RESULTS IN: | |
| node_test: node c/module_c.js | |
| Error: Cannot find module './../module_b' | |
| node_test: node c/module_c.js | |
| Error: Cannot find module '../module_b' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment