Skip to content

async_hooks: minor refactor to callback invocation

Re-use the init function wherever possible, and move try { … } catch blocks that result in fatal errors to a larger scope.

Also make the argument order for init() consistent in the codebase.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

async_hooks /cc @nodejs/async_hooks

Merge request reports

Loading