File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -54,12 +54,12 @@ const inputs = [
5454const timeouts = [ ] ;
5555const intervals = [ ] ;
5656
57- inputs . forEach ( function ( value , index ) {
58- setTimeout ( function ( ) {
57+ inputs . forEach ( ( value , index ) => {
58+ setTimeout ( ( ) => {
5959 timeouts [ index ] = true ;
6060 } , value ) ;
6161
62- const handle = setInterval ( function ( ) {
62+ const handle = setInterval ( ( ) => {
6363 clearInterval ( handle ) ; // disarm timer or we'll never finish
6464 intervals [ index ] = true ;
6565 } , value ) ;
@@ -68,9 +68,9 @@ inputs.forEach(function(value, index) {
6868// All values in inputs array coerce to 1 ms. Therefore, they should all run
6969// before a timer set here for 2 ms.
7070
71- setTimeout ( common . mustCall ( function ( ) {
71+ setTimeout ( common . mustCall ( ( ) => {
7272 // assert that all other timers have run
73- inputs . forEach ( function ( value , index ) {
73+ inputs . forEach ( ( value , index ) => {
7474 assert ( timeouts [ index ] ) ;
7575 assert ( intervals [ index ] ) ;
7676 } ) ;
You can’t perform that action at this time.
0 commit comments