More linter silencing
[benchmarks-js.git] / promise-handling.js
index bed3ac4f64a8de4a8042d7dd54c7e4d92fd3acef..e4e712b2f664e25e736d91d35d3876bb022f969d 100644 (file)
@@ -18,13 +18,13 @@ async function asyncFunction () {
 }
 
 suite
-  .add('await promise', async function () {
+  .add('await promise', async () => {
     await asyncFunction()
   })
-  .add('promise', function () {
+  .add('promise', () => {
     asyncFunction()
   })
-  .on('cycle', function (event) {
+  .on('cycle', event => {
     console.log(event.target.toString())
   })
   .on('complete', function () {