diff options
author | Satya Rohith <me@satyarohith.com> | 2024-04-16 19:15:41 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-16 13:45:41 +0000 |
commit | 50223c5c532332f4a296b12b027f85429f529690 (patch) | |
tree | 75d4494d1ade596038ad52ac0241addcc3a124c2 /cli/tools/bench/mod.rs | |
parent | 0a7f46b8c29d67b579e4ffd4681aa5d0b7e30c6b (diff) |
fix(ext/node): dispatch beforeExit/exit events irrespective of listeners (#23382)
Closes https://github.com/denoland/deno/issues/23342
Closes https://github.com/denoland/deno/issues/21757
Diffstat (limited to 'cli/tools/bench/mod.rs')
-rw-r--r-- | cli/tools/bench/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/tools/bench/mod.rs b/cli/tools/bench/mod.rs index 88bff479c..95986f320 100644 --- a/cli/tools/bench/mod.rs +++ b/cli/tools/bench/mod.rs @@ -269,7 +269,9 @@ async fn bench_specifier_inner( // Ignore `defaultPrevented` of the `beforeunload` event. We don't allow the // event loop to continue beyond what's needed to await results. worker.dispatch_beforeunload_event()?; + worker.dispatch_process_beforeexit_event()?; worker.dispatch_unload_event()?; + worker.dispatch_process_exit_event()?; // Ensure the worker has settled so we can catch any remaining unhandled rejections. We don't // want to wait forever here. |