summaryrefslogtreecommitdiff
path: root/lib/fs.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/fs.js')
-rw-r--r--lib/fs.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/fs.js b/lib/fs.js
index d5c7ea70d8..1b3df1119f 100644
--- a/lib/fs.js
+++ b/lib/fs.js
@@ -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);