diff options
| author | snek <snek@deno.com> | 2024-07-15 09:56:51 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-15 09:56:51 -0700 |
| commit | 70a9631696d98c3a1158164c4690d0a1e38c1378 (patch) | |
| tree | 81af8b69d5518051aa8f85934b241450b56ca3af /ext/node/ops/vm_internal.rs | |
| parent | 702f7ee89c882f82b2fb649212bd8dbbb4476062 (diff) | |
chore: upgrade dependencies (#24565)
rustls + hyper + deno_core
Diffstat (limited to 'ext/node/ops/vm_internal.rs')
| -rw-r--r-- | ext/node/ops/vm_internal.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/node/ops/vm_internal.rs b/ext/node/ops/vm_internal.rs index afcdc1b9c..a9c13a582 100644 --- a/ext/node/ops/vm_internal.rs +++ b/ext/node/ops/vm_internal.rs @@ -119,7 +119,7 @@ impl ContextifyContext { unsafe { v8_context.set_aligned_pointer_in_embedder_data( 3, - ptr.borrow().unwrap() as *const ContextifyContext as _, + &*ptr.unwrap() as *const ContextifyContext as _, ); } @@ -142,11 +142,10 @@ impl ContextifyContext { .get_private(scope, private_symbol) .and_then(|wrapper| { deno_core::cppgc::try_unwrap_cppgc_object::<Self>(scope, wrapper) - .borrow() // SAFETY: the lifetime of the scope does not actually bind to // the lifetime of this reference at all, but the object we read // it from does, so it will be alive at least that long. - .map(|r| unsafe { &*(r as *const _) }) + .map(|r| unsafe { &*(&*r as *const _) }) }) } |
