diff options
Diffstat (limited to 'test/simple/test-timers-unref.js')
-rw-r--r-- | test/simple/test-timers-unref.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/simple/test-timers-unref.js b/test/simple/test-timers-unref.js index 4be557e506..1c362cb836 100644 --- a/test/simple/test-timers-unref.js +++ b/test/simple/test-timers-unref.js @@ -54,6 +54,13 @@ check_unref = setInterval(function() { checks += 1; }, 100); +// Should not assert on args.Holder()->InternalFieldCount() > 0. See #4261. +(function() { + var t = setInterval(function() {}, 1); + process.nextTick(t.unref.bind({})); + process.nextTick(t.unref.bind(t)); +})(); + process.on('exit', function() { assert.strictEqual(interval_fired, false, 'Interval should not fire'); assert.strictEqual(timeout_fired, false, 'Timeout should not fire'); |