X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=promise-handling.js;h=03a78e282d1d983d743dd12da207bdeae1b75b96;hb=da8d42f6bee8d0ff2a0f1b5b3e1b8cdc82b57ad1;hp=182ba772bef44b6c60ced6f74e6e1d79a15920ec;hpb=ed2968f2ee816cb47841f537bcbfb8590aa7bbb9;p=benchmarks-js.git diff --git a/promise-handling.js b/promise-handling.js index 182ba77..03a78e2 100644 --- a/promise-handling.js +++ b/promise-handling.js @@ -3,10 +3,16 @@ const { LIST_FORMATTER } = require('./benchmark-utils') const suite = new Benchmark.Suite() +/** + * + */ function promise () { return new Promise() } +/** + * + */ async function asyncFunction () { await promise() }