Hoisted by one's own petard, or, how not to debug JavaScript within Node.js

Original is from Hamlet...

When looking at a nasty bug in a complex, tangled, callbackhell infested piece of JavaScript within node.js I forgot about hoisting...
Schoolboy error


Comments