pgte/nock — pull request #28 by goldjunge (2012-01-11 19:45:01+00:00)
Title: Moves the defense check for next emptiness

* Checks on nextTick if next is empty

In rare cases next can be empty when execution was deferred to next event loop cycle. This moves the defense check inside of the fn that is ending up on the loop. Only drawback I can spot is, that in the case when next is empty even before `process.nextTick` is called we putting a fn on the loop that will abort immediately.