diff options
Diffstat (limited to 'lib/fs.js')
-rw-r--r-- | lib/fs.js | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1342,10 +1342,10 @@ function watch(filename, options, listener) { if (!watchers) watchers = require('internal/fs/watchers'); const watcher = new watchers.FSWatcher(); - watcher.start(filename, - options.persistent, - options.recursive, - options.encoding); + watcher[watchers.kFSWatchStart](filename, + options.persistent, + options.recursive, + options.encoding); if (listener) { watcher.addListener('change', listener); |