joyent/libuv — pull request #666 by saghul (2012-12-24 15:37:32+00:00)
Title: unix: fix running loop when all handles are unref'd

Hi!

This pull request contains 2 fixes: the first commit disallows NULL to be passed as a callback to prepare/idle/check handles and modifies the tests accordingly.

After the first commit, the build fails on unix (test-ref) because the event loop will run once even if all handles are unref'd. This wasn's apparent because the tests in test-ref used NULL as a callback. The second commit fixes this.

/cc @bnoordhuis @piscisaureus