Skip to content

Instantly share code, notes, and snippets.

@doowb
Created January 31, 2014 00:41
Show Gist options
  • Save doowb/8723255 to your computer and use it in GitHub Desktop.
Save doowb/8723255 to your computer and use it in GitHub Desktop.
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();
module.exports = function () {
console.log('second - first.foo:', first.foo);
first.baz = 'bang';
};
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