@@ -15,7 +15,7 @@ function IgnoringWatchFileSystem(wfs, paths) {
1515 this . paths = paths ;
1616}
1717
18- IgnoringWatchFileSystem . prototype . watch = function ( files , dirs , missing , startTime , delay , callback , callbackUndelayed ) {
18+ IgnoringWatchFileSystem . prototype . watch = function ( files , dirs , missing , startTime , options , callback , callbackUndelayed ) {
1919 var ignored = function ( path ) {
2020 return this . paths . some ( function ( p ) {
2121 return p instanceof RegExp ? p . test ( path ) : path . indexOf ( p ) === 0 ;
@@ -25,10 +25,11 @@ IgnoringWatchFileSystem.prototype.watch = function(files, dirs, missing, startTi
2525 var notIgnored = function ( path ) {
2626 return ! ignored ( path ) ;
2727 } ;
28+
2829 var ignoredFiles = files . filter ( ignored ) ;
2930 var ignoredDirs = dirs . filter ( ignored ) ;
3031
31- this . wfs . watch ( files . filter ( notIgnored ) , dirs . filter ( notIgnored ) , missing , startTime , delay , function ( err , filesModified , dirsModified , fileTimestamps , dirTimestamps ) {
32+ this . wfs . watch ( files . filter ( notIgnored ) , dirs . filter ( notIgnored ) , missing , startTime , options , function ( err , filesModified , dirsModified , missingModified , fileTimestamps , dirTimestamps ) {
3233 if ( err ) return callback ( err ) ;
3334
3435 ignoredFiles . forEach ( function ( path ) {
@@ -39,6 +40,6 @@ IgnoringWatchFileSystem.prototype.watch = function(files, dirs, missing, startTi
3940 dirTimestamps [ path ] = 1 ;
4041 } ) ;
4142
42- callback ( err , filesModified , dirsModified , fileTimestamps , dirTimestamps ) ;
43+ callback ( err , filesModified , dirsModified , missingModified , fileTimestamps , dirTimestamps ) ;
4344 } , callbackUndelayed ) ;
4445} ;
0 commit comments