summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
Diffstat (limited to 'cli')
-rw-r--r--cli/standalone.rs1
-rw-r--r--cli/worker.rs2
2 files changed, 3 insertions, 0 deletions
diff --git a/cli/standalone.rs b/cli/standalone.rs
index 352e04e57..7d13f91a8 100644
--- a/cli/standalone.rs
+++ b/cli/standalone.rs
@@ -302,6 +302,7 @@ pub async fn run(
shared_array_buffer_store: None,
compiled_wasm_module_store: None,
stdio: Default::default(),
+ leak_isolate: true,
};
let mut worker = MainWorker::bootstrap_from_options(
main_module.clone(),
diff --git a/cli/worker.rs b/cli/worker.rs
index 7ef90d79f..17d1d3c43 100644
--- a/cli/worker.rs
+++ b/cli/worker.rs
@@ -550,6 +550,7 @@ async fn create_main_worker_internal(
shared_array_buffer_store: Some(ps.shared_array_buffer_store.clone()),
compiled_wasm_module_store: Some(ps.compiled_wasm_module_store.clone()),
stdio,
+ leak_isolate: !bench_or_test && ps.options.coverage_dir().is_none(),
};
let mut worker = MainWorker::bootstrap_from_options(
@@ -780,6 +781,7 @@ mod tests {
shared_array_buffer_store: None,
compiled_wasm_module_store: None,
stdio: Default::default(),
+ leak_isolate: false,
};
MainWorker::bootstrap_from_options(main_module, permissions, options)