File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -54,12 +54,12 @@ const inputs = [
54
54
const timeouts = [ ] ;
55
55
const intervals = [ ] ;
56
56
57
- inputs . forEach ( function ( value , index ) {
58
- setTimeout ( function ( ) {
57
+ inputs . forEach ( ( value , index ) => {
58
+ setTimeout ( ( ) => {
59
59
timeouts [ index ] = true ;
60
60
} , value ) ;
61
61
62
- const handle = setInterval ( function ( ) {
62
+ const handle = setInterval ( ( ) => {
63
63
clearInterval ( handle ) ; // disarm timer or we'll never finish
64
64
intervals [ index ] = true ;
65
65
} , value ) ;
@@ -68,9 +68,9 @@ inputs.forEach(function(value, index) {
68
68
// All values in inputs array coerce to 1 ms. Therefore, they should all run
69
69
// before a timer set here for 2 ms.
70
70
71
- setTimeout ( common . mustCall ( function ( ) {
71
+ setTimeout ( common . mustCall ( ( ) => {
72
72
// assert that all other timers have run
73
- inputs . forEach ( function ( value , index ) {
73
+ inputs . forEach ( ( value , index ) => {
74
74
assert ( timeouts [ index ] ) ;
75
75
assert ( intervals [ index ] ) ;
76
76
} ) ;
You can’t perform that action at this time.
0 commit comments