• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1'use strict';
2
3const common = require('../common');
4
5if (common.isIBMi)
6  common.skip('IBMi does not support `fs.watch()`');
7
8const fs = require('fs');
9
10const watcher = fs.watch(__filename, common.mustNotCall());
11
12watcher.unref();
13
14setTimeout(
15  common.mustCall(() => {
16    watcher.ref();
17    watcher.unref();
18  }),
19  common.platformTimeout(100)
20);
21