mirror of https://github.com/lukechilds/node.git
Browse Source
fixes #1287 PR-URL: https://github.com/iojs/io.js/pull/1288 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>v1.8.0-commit
Petka Antonov
10 years ago
3 changed files with 17 additions and 3 deletions
@ -0,0 +1,14 @@ |
|||
var assert = require('assert'); |
|||
|
|||
var t = new (process.binding('timer_wrap').Timer); |
|||
var called = 0; |
|||
function onclose() { |
|||
called++; |
|||
} |
|||
|
|||
t.close(onclose); |
|||
t.close(onclose); |
|||
|
|||
process.on('exit', function() { |
|||
assert.equal(1, called); |
|||
}); |
Loading…
Reference in new issue