@@ -65,7 +65,7 @@ let asyncTest = Promise.resolve();
65
65
code : 'ERR_INVALID_ARG_TYPE' ,
66
66
name : 'TypeError' ,
67
67
message : 'The "options" argument must be of type object.' +
68
- common . invalidArgTypeHelper ( i )
68
+ common . invalidArgTypeHelper ( i ) ,
69
69
} )
70
70
) ) ;
71
71
}
@@ -141,7 +141,7 @@ let asyncTest = Promise.resolve();
141
141
handleEvent : common . mustCall ( function ( event ) {
142
142
strictEqual ( event . type , 'foo' ) ;
143
143
strictEqual ( this , ev2 ) ;
144
- } )
144
+ } ) ,
145
145
} ;
146
146
147
147
eventTarget . addEventListener ( 'foo' , ev1 ) ;
@@ -318,15 +318,15 @@ let asyncTest = Promise.resolve();
318
318
code : 'ERR_INVALID_ARG_TYPE' ,
319
319
name : 'TypeError' ,
320
320
message : 'The "event" argument must be an instance of Event.' +
321
- common . invalidArgTypeHelper ( i )
321
+ common . invalidArgTypeHelper ( i ) ,
322
322
} ) ;
323
323
} ) ;
324
324
325
325
const err = ( arg ) => ( {
326
326
code : 'ERR_INVALID_ARG_TYPE' ,
327
327
name : 'TypeError' ,
328
328
message : 'The "listener" argument must be an instance of EventListener.' +
329
- common . invalidArgTypeHelper ( arg )
329
+ common . invalidArgTypeHelper ( arg ) ,
330
330
} ) ;
331
331
332
332
[
@@ -388,7 +388,7 @@ let asyncTest = Promise.resolve();
388
388
const event = new Event ( 'foo' ) ;
389
389
target1 . addEventListener ( 'foo' , common . mustCall ( ( event ) => {
390
390
throws ( ( ) => target2 . dispatchEvent ( event ) , {
391
- code : 'ERR_EVENT_RECURSION'
391
+ code : 'ERR_EVENT_RECURSION' ,
392
392
} ) ;
393
393
} ) ) ;
394
394
target1 . dispatchEvent ( event ) ;
@@ -486,7 +486,7 @@ let asyncTest = Promise.resolve();
486
486
/ a / ,
487
487
] . forEach ( ( i ) => {
488
488
throws ( ( ) => target . dispatchEvent . call ( i , event ) , {
489
- code : 'ERR_INVALID_THIS'
489
+ code : 'ERR_INVALID_THIS' ,
490
490
} ) ;
491
491
} ) ;
492
492
}
@@ -636,20 +636,20 @@ let asyncTest = Promise.resolve();
636
636
{
637
637
const ev = new Event ( 'test' ) ;
638
638
const evConstructorName = inspect ( ev , {
639
- depth : - 1
639
+ depth : - 1 ,
640
640
} ) ;
641
641
strictEqual ( evConstructorName , 'Event' ) ;
642
642
643
643
const inspectResult = inspect ( ev , {
644
- depth : 1
644
+ depth : 1 ,
645
645
} ) ;
646
646
ok ( inspectResult . includes ( 'Event' ) ) ;
647
647
}
648
648
649
649
{
650
650
const et = new EventTarget ( ) ;
651
651
const inspectResult = inspect ( et , {
652
- depth : 1
652
+ depth : 1 ,
653
653
} ) ;
654
654
ok ( inspectResult . includes ( 'EventTarget' ) ) ;
655
655
}
0 commit comments