From a555cb4d1d3c04a4bdc0e04d20d23b157cef3b92 Mon Sep 17 00:00:00 2001 From: snek Date: Mon, 1 Jul 2024 15:48:52 -0700 Subject: feat: upgrade deno_core (#24364) - Symbol.asyncDispose no longer needs to be polyfilled - assorted updates for cppgc api changes --- ext/node/ops/crypto/digest.rs | 4 ++-- ext/node/ops/crypto/x509.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'ext/node/ops/crypto') diff --git a/ext/node/ops/crypto/digest.rs b/ext/node/ops/crypto/digest.rs index 588ea7425..e3a91e338 100644 --- a/ext/node/ops/crypto/digest.rs +++ b/ext/node/ops/crypto/digest.rs @@ -1,7 +1,7 @@ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. use deno_core::error::generic_error; use deno_core::error::AnyError; -use deno_core::GcResource; +use deno_core::GarbageCollected; use digest::Digest; use digest::DynDigest; use digest::ExtendableOutput; @@ -13,7 +13,7 @@ pub struct Hasher { pub hash: Rc>>, } -impl GcResource for Hasher {} +impl GarbageCollected for Hasher {} impl Hasher { pub fn new( diff --git a/ext/node/ops/crypto/x509.rs b/ext/node/ops/crypto/x509.rs index 517a3a943..c9a23aca0 100644 --- a/ext/node/ops/crypto/x509.rs +++ b/ext/node/ops/crypto/x509.rs @@ -19,7 +19,7 @@ pub(crate) struct Certificate { cert: X509Certificate<'static>, } -impl deno_core::GcResource for Certificate {} +impl deno_core::GarbageCollected for Certificate {} impl Certificate { fn fingerprint(&self) -> Option { -- cgit v1.2.3