diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2023-03-13 08:58:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-13 12:58:17 +0000 |
commit | 224cff7a2f1de9cc821c34ccac63cc9e4ef17531 (patch) | |
tree | fc3a8b28fc139899543724391b752e1bd5ed10a2 /runtime | |
parent | e712fbfe4a56cf0d8e39354afbb8204e83d147f3 (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.rs | 1 | ||||
-rw-r--r-- | runtime/worker.rs | 3 |
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() }); |