joyent/node — pull request #5102 by bnoordhuis (2013-03-21 11:32:37+00:00)
Title: timers: fix setInterval() assert

Test case:

var t = setInterval(function() {}, 1);
process.nextTick(t.unref);

Output:

Assertion failed: (args.Holder()->InternalFieldCount() > 0),
function Unref, file ../src/handle_wrap.cc, line 78.

setInterval() returns a binding layer object. Make it stop doing that,
wrap the raw process.binding('timer_wrap').Timer object in a Timeout
object.

Fixes #4261.

Reviewers: @isaacs @TooTallNate