| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent da8ceb9 commit e1a1244
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 | |
|---|---|---|---|
@@ -133,8 +133,6 @@ int NodeMainInstance::Run() { | |||
| 133 | 133 | more = uv_loop_alive(env->event_loop()); | |
| 134 | 134 | if (more && !env->is_stopping()) continue; | |
| 135 | 135 | ||
| 136 | - env->RunBeforeExitCallbacks(); | ||
| 137 | - | ||
| 138 | 136 | if (!uv_loop_alive(env->event_loop())) { | |
| 139 | 137 | EmitBeforeExit(env.get()); | |
| 140 | 138 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments