@@ -21,7 +21,7 @@ const {
21
21
22
22
const {
23
23
kFsStatsFieldsNumber,
24
- StatWatcher : _StatWatcher
24
+ StatWatcher : _StatWatcher ,
25
25
} = internalBinding ( 'fs' ) ;
26
26
27
27
const { FSEvent } = internalBinding ( 'fs_event_wrap' ) ;
@@ -30,12 +30,12 @@ const { EventEmitter } = require('events');
30
30
31
31
const {
32
32
getStatsFromBinding,
33
- getValidatedPath
33
+ getValidatedPath,
34
34
} = require ( 'internal/fs/utils' ) ;
35
35
36
36
const {
37
37
defaultTriggerAsyncIdScope,
38
- symbols : { owner_symbol }
38
+ symbols : { owner_symbol } ,
39
39
} = require ( 'internal/async_hooks' ) ;
40
40
41
41
const { toNamespacedPath } = require ( 'path' ) ;
@@ -122,7 +122,7 @@ StatWatcher.prototype[kFSStatWatcherStart] = function(filename,
122
122
const error = uvException ( {
123
123
errno : err ,
124
124
syscall : 'watch' ,
125
- path : filename
125
+ path : filename ,
126
126
} ) ;
127
127
error . filename = filename ;
128
128
throw error ;
@@ -207,7 +207,7 @@ function FSWatcher() {
207
207
const error = uvException ( {
208
208
errno : status ,
209
209
syscall : 'watch' ,
210
- path : filename
210
+ path : filename ,
211
211
} ) ;
212
212
error . filename = filename ;
213
213
this . emit ( 'error' , error ) ;
@@ -249,7 +249,7 @@ FSWatcher.prototype[kFSWatchStart] = function(filename,
249
249
syscall : 'watch' ,
250
250
path : filename ,
251
251
message : err === UV_ENOSPC ?
252
- 'System limit for number of file watchers reached' : ''
252
+ 'System limit for number of file watchers reached' : '' ,
253
253
} ) ;
254
254
error . filename = filename ;
255
255
throw error ;
@@ -296,7 +296,7 @@ function emitCloseNT(self) {
296
296
ObjectDefineProperty ( FSEvent . prototype , 'owner' , {
297
297
__proto__ : null ,
298
298
get ( ) { return this [ owner_symbol ] ; } ,
299
- set ( v ) { return this [ owner_symbol ] = v ; }
299
+ set ( v ) { return this [ owner_symbol ] = v ; } ,
300
300
} ) ;
301
301
302
302
async function * watch ( filename , options = kEmptyObject ) {
@@ -336,7 +336,7 @@ async function* watch(filename, options = kEmptyObject) {
336
336
const error = uvException ( {
337
337
errno : status ,
338
338
syscall : 'watch' ,
339
- path : filename
339
+ path : filename ,
340
340
} ) ;
341
341
error . filename = filename ;
342
342
handle . close ( ) ;
@@ -354,7 +354,7 @@ async function* watch(filename, options = kEmptyObject) {
354
354
syscall : 'watch' ,
355
355
path : filename ,
356
356
message : err === UV_ENOSPC ?
357
- 'System limit for number of file watchers reached' : ''
357
+ 'System limit for number of file watchers reached' : '' ,
358
358
} ) ;
359
359
error . filename = filename ;
360
360
handle . close ( ) ;
0 commit comments