summaryrefslogtreecommitdiff
path: root/ext/node/ops/vm_internal.rs
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2024-06-21 10:49:39 +0530
committerGitHub <noreply@github.com>2024-06-21 10:49:39 +0530
commitb4939f33795b42f4a6bb47a803a9c83b531454a4 (patch)
treec666a9daef5cdfc05644a233910f60f9ecd98634 /ext/node/ops/vm_internal.rs
parent88e3f465d3a95db277ac7e685a0ed239958f8e6e (diff)
fix: upgrade deno_core to 0.291.0 (#24297)
Diffstat (limited to 'ext/node/ops/vm_internal.rs')
-rw-r--r--ext/node/ops/vm_internal.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/node/ops/vm_internal.rs b/ext/node/ops/vm_internal.rs
index 4af182595..0ac714c9f 100644
--- a/ext/node/ops/vm_internal.rs
+++ b/ext/node/ops/vm_internal.rs
@@ -64,6 +64,8 @@ pub struct ContextifyContext {
sandbox: v8::Global<v8::Object>,
}
+impl deno_core::GcResource for ContextifyContext {}
+
impl ContextifyContext {
pub fn attach(
scope: &mut v8::HandleScope,
@@ -125,7 +127,7 @@ impl ContextifyContext {
}
pub fn from_sandbox_obj<'a>(
- scope: &mut v8::HandleScope,
+ scope: &mut v8::HandleScope<'a>,
sandbox_obj: v8::Local<v8::Object>,
) -> Option<&'a Self> {
let private_str =
@@ -136,6 +138,7 @@ impl ContextifyContext {
.get_private(scope, private_symbol)
.and_then(|wrapper| {
deno_core::cppgc::try_unwrap_cppgc_object::<Self>(wrapper)
+ .map(|s| s as _)
})
}