Skip to content

Commit

Permalink
fix(base): don't wrap JsRuntime with ManuallyDrop early (#457)
Browse files Browse the repository at this point in the history
  • Loading branch information
nyannyacha authored Dec 4, 2024
1 parent 5707665 commit 4cbeee8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/base/src/deno_runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ where
..Default::default()
};

let mut js_runtime = ManuallyDrop::new(JsRuntime::new(runtime_options));
let mut js_runtime = JsRuntime::new(runtime_options);

let dispatch_fns = {
let context = js_runtime.main_context();
Expand Down Expand Up @@ -911,7 +911,7 @@ where

Ok(Self {
drop_token,
js_runtime,
js_runtime: ManuallyDrop::new(js_runtime),
env_vars,
conf,
s3_fs: maybe_s3_fs,
Expand Down

0 comments on commit 4cbeee8

Please sign in to comment.