Skip to content

Commit 9883ba6

Browse files
danbevcodebytere
authored andcommitted
src: add promise_resolve to SetupHooks comment
This commit adds promise_resolve to the list of callbacks mentioned in the comment. It also fixes a minor typo, every -> ever. PR-URL: nodejs#33365 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Gerhard Stöbich <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 5d80576 commit 9883ba6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/async_wrap.cc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,9 +301,10 @@ static void SetupHooks(const FunctionCallbackInfo<Value>& args) {
301301

302302
CHECK(args[0]->IsObject());
303303

304-
// All of init, before, after, destroy are supplied by async_hooks
305-
// internally, so this should every only be called once. At which time all
306-
// the functions should be set. Detect this by checking if init !IsEmpty().
304+
// All of init, before, after, destroy, and promise_resolve are supplied by
305+
// async_hooks internally, so this should only ever be called once. At which
306+
// time all the functions should be set. Detect this by checking if
307+
// init !IsEmpty().
307308
CHECK(env->async_hooks_init_function().IsEmpty());
308309

309310
Local<Object> fn_obj = args[0].As<Object>();

0 commit comments

Comments
 (0)