This should be split into a pull request for joyent/libuv and should include a regression test.  See libuv's test/ directory for examples.  Add appropriate entries to uv.gyp, Makefile.am and test/test-list.h.

Style issue: don't use C++-style comments.