We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6f58c0 commit e70b052Copy full SHA for e70b052
src/api/hooks.cc
@@ -45,7 +45,9 @@ void EmitBeforeExit(Environment* env) {
45
Local<Integer> exit_code;
46
if (!exit_code_v->ToInteger(env->context()).ToLocal(&exit_code)) return;
47
48
- ProcessEmit(env, "beforeExit", exit_code).ToLocalChecked();
+ // TODO(addaleax): Provide variants of EmitExit() and EmitBeforeExit() that
49
+ // actually forward empty MaybeLocal<>s (and check env->can_call_into_js()).
50
+ USE(ProcessEmit(env, "beforeExit", exit_code));
51
}
52
53
int EmitExit(Environment* env) {
0 commit comments