async_wrap: add constructor for PromiseWrap · nodejs/node@09b3fae · GitHub
Skip to content

Commit 09b3fae

Browse files
trevnorrisMylesBorins
authored andcommitted
async_wrap: add constructor for PromiseWrap
Another optional argument is about to be added to AsyncWrap. So instead of piling them on, create a separate constructor specifically for PromiseWrap since it's the only class that uses the "silent" argument. PR-URL: #14208 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
1 parent bbdd93f commit 09b3fae

2 files changed

Lines changed: 23 additions & 5 deletions

File tree

src/async-wrap.cc

Lines changed: 18 additions & 3 deletions

src/async-wrap.h

Lines changed: 5 additions & 2 deletions

0 commit comments

Comments
 (0)