Created
May 21, 2014 13:16
-
-
Save brigand/c437e49f6d7bbad8352c to your computer and use it in GitHub Desktop.
This file contains 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 x = require("./fnord"); | |
module.exports = function foo() { | |
console.log(x(1, 2)); | |
}; |
This file contains 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
module.exports = function (a, b) { | |
return a + b; | |
}; |
This file contains 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 x = require("./fnord"), | |
y = require.resolve("./fnord"), | |
z = require.cache[y].exports; | |
require.cache[y].exports = function (a, b) { | |
console.log("got", a, b); | |
return z(a, b); | |
}; | |
var t = require("./dronf"); | |
t(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment