*
*/
function promise () {
- return new Promise(resolve => {
+ return new Promise((resolve) => {
resolve()
})
}
}),
Benchmark.add('promise with then().catch()', () => {
asyncFunction()
- .then(r => {
+ .then((r) => {
return r
})
- .catch(e => {
+ .catch((e) => {
console.error(e)
})
}),
format: 'table.html',
details: true
})
-).catch(err => {
+).catch((err) => {
console.error(err)
})