Skip to content

Commit

Permalink
fixup! src: fix process exit listeners not receiving unsettled tla codes
Browse files Browse the repository at this point in the history
fix cpp linting
  • Loading branch information
dario-piotrowicz committed Feb 9, 2025
1 parent dad3d0c commit ae6d5fb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/api/hooks.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include "node_internals.h"
#include "node_process-inl.h"
#include "async_wrap.h"
#include "v8-primitive.h"

namespace node {

Expand Down Expand Up @@ -81,10 +82,10 @@ Maybe<ExitCode> EmitProcessExitInternal(Environment* env) {
}
}

int exit_code_int = static_cast<int32_t>(exit_code);
Local<Integer> exit_code_int = Integer::New(
isolate, static_cast<int32_t>(exit_code));


if (ProcessEmit(env, "exit", Integer::New(isolate, exit_code_int)).IsEmpty()) {
if (ProcessEmit(env, "exit", exit_code_int).IsEmpty()) {
return Nothing<ExitCode>();
}

Expand Down

0 comments on commit ae6d5fb

Please sign in to comment.