| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 66b3619 commit 906d279
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -30,6 +30,8 @@ void AtExit(Environment* env, void (*cb)(void* arg), void* arg) { | |||
| 30 | 30 | } | |
| 31 | 31 | ||
| 32 | 32 | void EmitBeforeExit(Environment* env) { | |
| 33 | + env->RunBeforeExitCallbacks(); | ||
| 34 | + | ||
| 33 | 35 | HandleScope handle_scope(env->isolate()); | |
| 34 | 36 | Context::Scope context_scope(env->context()); | |
| 35 | 37 | Local<Value> exit_code = env->process_object() | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -140,8 +140,6 @@ int NodeMainInstance::Run() { | |||
| 140 | 140 | more = uv_loop_alive(env->event_loop()); | |
| 141 | 141 | if (more && !env->is_stopping()) continue; | |
| 142 | 142 | ||
| 143 | - env->RunBeforeExitCallbacks(); | ||
| 144 | - | ||
| 145 | 143 | if (!uv_loop_alive(env->event_loop())) { | |
| 146 | 144 | EmitBeforeExit(env.get()); | |
| 147 | 145 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments