Skip to content

Commit 4cbeee8

Browse files
authored
fix(base): don't wrap JsRuntime with ManuallyDrop early (#457)
1 parent 5707665 commit 4cbeee8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/base/src/deno_runtime.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ where
691691
..Default::default()
692692
};
693693

694-
let mut js_runtime = ManuallyDrop::new(JsRuntime::new(runtime_options));
694+
let mut js_runtime = JsRuntime::new(runtime_options);
695695

696696
let dispatch_fns = {
697697
let context = js_runtime.main_context();
@@ -911,7 +911,7 @@ where
911911

912912
Ok(Self {
913913
drop_token,
914-
js_runtime,
914+
js_runtime: ManuallyDrop::new(js_runtime),
915915
env_vars,
916916
conf,
917917
s3_fs: maybe_s3_fs,

0 commit comments

Comments
 (0)