Skip to content

Instantly share code, notes, and snippets.

@connordavison
Last active November 8, 2015 13:56
Show Gist options
  • Select an option

  • Save connordavison/fbcf2e98d3355f30ce0f to your computer and use it in GitHub Desktop.

Select an option

Save connordavison/fbcf2e98d3355f30ce0f to your computer and use it in GitHub Desktop.
Require bug. To execute; run `node c.js`.
var B = require('./b');
module.exports = function () {};
var A = require('./a');
module.exports = function (a) { return a instanceof A; };
var A = require('./a');
var B = require('./b');
var b = new B();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment