summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2023-03-13 08:58:17 -0400
committerGitHub <noreply@github.com>2023-03-13 12:58:17 +0000
commit224cff7a2f1de9cc821c34ccac63cc9e4ef17531 (patch)
treefc3a8b28fc139899543724391b752e1bd5ed10a2 /runtime
parente712fbfe4a56cf0d8e39354afbb8204e83d147f3 (diff)
Revert "feat(core): prevent isolate drop for CLI main worker (#18059)" (#18157)
Fixes https://github.com/denoland/deno/issues/18120 https://github.com/denoland/deno/issues/18137 https://github.com/denoland/fresh/issues/1073 This reverts commit 0cce9c2bcc9667935a571d30847e66ef5d01a196.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/examples/hello_runtime.rs1
-rw-r--r--runtime/worker.rs3
2 files changed, 0 insertions, 4 deletions
diff --git a/runtime/examples/hello_runtime.rs b/runtime/examples/hello_runtime.rs
index 1f09551a6..b8b152467 100644
--- a/runtime/examples/hello_runtime.rs
+++ b/runtime/examples/hello_runtime.rs
@@ -65,7 +65,6 @@ async fn main() -> Result<(), AnyError> {
shared_array_buffer_store: None,
compiled_wasm_module_store: None,
stdio: Default::default(),
- leak_isolate: true,
};
let js_path =
diff --git a/runtime/worker.rs b/runtime/worker.rs
index 7ce6eb58d..4bf7b00e8 100644
--- a/runtime/worker.rs
+++ b/runtime/worker.rs
@@ -131,7 +131,6 @@ pub struct WorkerOptions {
/// `WebAssembly.Module` objects cannot be serialized.
pub compiled_wasm_module_store: Option<CompiledWasmModuleStore>,
pub stdio: Stdio,
- pub leak_isolate: bool,
}
impl Default for WorkerOptions {
@@ -167,7 +166,6 @@ impl Default for WorkerOptions {
startup_snapshot: Default::default(),
bootstrap: Default::default(),
stdio: Default::default(),
- leak_isolate: false,
}
}
}
@@ -290,7 +288,6 @@ impl MainWorker {
extensions,
inspector: options.maybe_inspector_server.is_some(),
is_main: true,
- leak_isolate: options.leak_isolate,
..Default::default()
});