summaryrefslogtreecommitdiff
path: root/test/parallel/test-timers-immediate-unref-nested-once.js
blob: 00efce9bcbc8d32f7f755de53bc9277a66027b28 (plain)
1
2
3
4
5
6
7
8
9
'use strict';

const common = require('../common');

// This immediate should not execute as it was unrefed
// and nothing else is keeping the event loop alive
setImmediate(() => {
  setImmediate(common.mustNotCall()).unref();
});