summaryrefslogtreecommitdiff
path: root/ext/node/ops
diff options
context:
space:
mode:
Diffstat (limited to 'ext/node/ops')
-rw-r--r--ext/node/ops/vm_internal.rs5
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 _) })
})
}