Commit 861285ab authored by Daniel Bevenius's avatar Daniel Bevenius
Browse files

src: refactor emit before/after/promiseResolve

Currently EmitBefore, EmitAfter, EmitPromiseResolve are very similar.
This commit suggests extracting the code they have in common to a new
function to reduce code duplication.

PR-URL: https://github.com/nodejs/node/pull/19295


Reviewed-By: default avatarAnna Henningsen <anna@addaleax.net>
parent 90b05382
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment