mirror of https://github.com/nodejs/node.git
parent
133036fdad
commit
3c4c36068e
|
@ -629,6 +629,10 @@ fs.watchFile = function(filename) {
|
|||
listener = arguments[1];
|
||||
}
|
||||
|
||||
if (!listener) {
|
||||
throw new Error('watchFile requires a listener function');
|
||||
}
|
||||
|
||||
if (options.persistent === undefined) options.persistent = true;
|
||||
if (options.interval === undefined) options.interval = 0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue