async_hooks: rename internal emit functions · nodejs/node@1aac2c0 · GitHub
Skip to content

Commit 1aac2c0

Browse files
AndreasMadsenaddaleax
authored andcommitted
async_hooks: rename internal emit functions
There are two categories of emit functions in async_hooks, those used by c++ (native) and those used by JavaScript (script). Previously these were named N for native and S for script. Finally, there was an odd case where emitInitN was called just init. This makes it more explicit by using the names emitInitNative and emitInitScript. The other emit functions are also renamed. PR-URL: #14152 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Trevor Norris <trev.norris@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent 0c69ec1 commit 1aac2c0

1 file changed

Lines changed: 15 additions & 17 deletions

File tree

lib/async_hooks.js

Lines changed: 15 additions & 17 deletions

0 commit comments

Comments
 (0)