fix(ext/node): worker_threads doesn't exit if there are message listeners (#22944)

Closes https://github.com/denoland/deno/issues/22934
This commit is contained in:
Bartek Iwańczuk 2024-03-15 20:38:16 +00:00 committed by GitHub
parent e40f9a5c14
commit c342cd36ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 91 additions and 36 deletions

View file

@ -63,7 +63,6 @@ pub struct BootstrapOptions {
pub disable_deprecated_api_warning: bool,
pub verbose_deprecated_api_warning: bool,
pub future: bool,
pub close_on_idle: bool,
}
impl Default for BootstrapOptions {
@ -95,7 +94,6 @@ impl Default for BootstrapOptions {
disable_deprecated_api_warning: false,
verbose_deprecated_api_warning: false,
future: false,
close_on_idle: false,
}
}
}
@ -131,8 +129,6 @@ struct BootstrapV8<'a>(
bool,
// future
bool,
// close_on_idle
bool,
);
impl BootstrapOptions {
@ -155,7 +151,6 @@ impl BootstrapOptions {
self.disable_deprecated_api_warning,
self.verbose_deprecated_api_warning,
self.future,
self.close_on_idle,
);
bootstrap.serialize(ser).unwrap()