repositories
/
benchmarks-js.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Apply dependencies update
[benchmarks-js.git]
/
promise-handling.js
diff --git
a/promise-handling.js
b/promise-handling.js
index 0d0b3671b171749b9792c7254d11887d1387469c..4e83dc54268f278c6d5de9d2dd29b96cf873a4d3 100644
(file)
--- a/
promise-handling.js
+++ b/
promise-handling.js
@@
-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()
}),