build: update volta pnpm version
[benchmarks-js.git] / promise-handling.js
index 0d0b3671b171749b9792c7254d11887d1387469c..11e0a96493056430a470792173f8fd4fd50f04d9 100644 (file)
@@ -34,6 +34,10 @@ Benchmark.suite(
         console.error(e)
       })
   }),
+  Benchmark.add('voided promise', () => {
+    // eslint-disable-next-line no-void
+    void asyncFunction()
+  }),
   Benchmark.add('mishandled promise', () => {
     asyncFunction()
   }),
@@ -54,4 +58,6 @@ Benchmark.suite(
     format: 'table.html',
     details: true
   })
-)
+).catch(err => {
+  console.error(err)
+})