Skip to content

Instantly share code, notes, and snippets.

@kriszyp
Created December 17, 2009 15:05
Show Gist options
  • Save kriszyp/258792 to your computer and use it in GitHub Desktop.
Save kriszyp/258792 to your computer and use it in GitHub Desktop.
require.paths.push(".");
exports.test = {
get foo(){
require("c");
}
};
require("a"); // a is just empty
$ node c.js
Error: (no message)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment