repositories
/
benchmarks-js.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build(deps-dev): apply updates
[benchmarks-js.git]
/
promise-handling.mjs
diff --git
a/promise-handling.mjs
b/promise-handling.mjs
index 7f450b3fc53c58f3e93abd821b6490ba7519d260..1624bc2d18224946d95738bb0c2dac41109040bc 100644
(file)
--- a/
promise-handling.mjs
+++ b/
promise-handling.mjs
@@
-23,9
+23,7
@@
Benchmark.suite(
.then(r => {
return r
})
.then(r => {
return r
})
- .catch(e => {
- console.error(e)
- })
+ .catch(console.error)
}),
Benchmark.add('voided promise', () => {
// eslint-disable-next-line no-void
}),
Benchmark.add('voided promise', () => {
// eslint-disable-next-line no-void
@@
-51,6
+49,4
@@
Benchmark.suite(
format: 'table.html',
details: true
})
format: 'table.html',
details: true
})
-).catch(err => {
- console.error(err)
-})
+).catch(console.error)