summaryrefslogtreecommitdiff
path: root/test/parallel/test-timers-clearImmediate.js
blob: ccd9826bb0c72526490037e897bf5b12a3c93a0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
'use strict';
const common = require('../common');

const N = 3;

function next() {
  const fn = common.mustCall(() => clearImmediate(immediate));
  const immediate = setImmediate(fn);
}

for (let i = 0; i < N; i++) {
  next();
}