Created
January 31, 2014 00:41
-
-
Save doowb/8723255 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 first = global.first = { | |
foo: 'bar' | |
}; | |
var second = require('./second'); | |
var third = require('./third'); | |
console.log(); | |
second(); | |
third(); | |
first.foo = 'baz'; | |
console.log(); | |
second(); | |
third(); |
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
module.exports = function () { | |
console.log('second - first.foo:', first.foo); | |
first.baz = 'bang'; | |
}; |
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
module.exports = function () { | |
console.log('third - first.foo:', first.foo); | |
console.log('third - first.baz:', first.baz); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment