@@ -21,7 +21,7 @@ const {
2121
2222const {
2323 kFsStatsFieldsNumber,
24- StatWatcher : _StatWatcher
24+ StatWatcher : _StatWatcher ,
2525} = internalBinding ( 'fs' ) ;
2626
2727const { FSEvent } = internalBinding ( 'fs_event_wrap' ) ;
@@ -30,12 +30,12 @@ const { EventEmitter } = require('events');
3030
3131const {
3232 getStatsFromBinding,
33- getValidatedPath
33+ getValidatedPath,
3434} = require ( 'internal/fs/utils' ) ;
3535
3636const {
3737 defaultTriggerAsyncIdScope,
38- symbols : { owner_symbol }
38+ symbols : { owner_symbol } ,
3939} = require ( 'internal/async_hooks' ) ;
4040
4141const { toNamespacedPath } = require ( 'path' ) ;
@@ -122,7 +122,7 @@ StatWatcher.prototype[kFSStatWatcherStart] = function(filename,
122122 const error = uvException ( {
123123 errno : err ,
124124 syscall : 'watch' ,
125- path : filename
125+ path : filename ,
126126 } ) ;
127127 error . filename = filename ;
128128 throw error ;
@@ -207,7 +207,7 @@ function FSWatcher() {
207207 const error = uvException ( {
208208 errno : status ,
209209 syscall : 'watch' ,
210- path : filename
210+ path : filename ,
211211 } ) ;
212212 error . filename = filename ;
213213 this . emit ( 'error' , error ) ;
@@ -249,7 +249,7 @@ FSWatcher.prototype[kFSWatchStart] = function(filename,
249249 syscall : 'watch' ,
250250 path : filename ,
251251 message : err === UV_ENOSPC ?
252- 'System limit for number of file watchers reached' : ''
252+ 'System limit for number of file watchers reached' : '' ,
253253 } ) ;
254254 error . filename = filename ;
255255 throw error ;
@@ -296,7 +296,7 @@ function emitCloseNT(self) {
296296ObjectDefineProperty ( FSEvent . prototype , 'owner' , {
297297 __proto__ : null ,
298298 get ( ) { return this [ owner_symbol ] ; } ,
299- set ( v ) { return this [ owner_symbol ] = v ; }
299+ set ( v ) { return this [ owner_symbol ] = v ; } ,
300300} ) ;
301301
302302async function * watch ( filename , options = kEmptyObject ) {
@@ -336,7 +336,7 @@ async function* watch(filename, options = kEmptyObject) {
336336 const error = uvException ( {
337337 errno : status ,
338338 syscall : 'watch' ,
339- path : filename
339+ path : filename ,
340340 } ) ;
341341 error . filename = filename ;
342342 handle . close ( ) ;
@@ -354,7 +354,7 @@ async function* watch(filename, options = kEmptyObject) {
354354 syscall : 'watch' ,
355355 path : filename ,
356356 message : err === UV_ENOSPC ?
357- 'System limit for number of file watchers reached' : ''
357+ 'System limit for number of file watchers reached' : '' ,
358358 } ) ;
359359 error . filename = filename ;
360360 handle . close ( ) ;
0 commit comments