chore(napi): remove useless de_init

This commit is contained in:
LongYinan 2022-12-16 21:50:49 +08:00
parent 6e4b16fe5d
commit e370dee545
No known key found for this signature in database
GPG key ID: C3666B7FC82ADAD7

View file

@ -19,13 +19,6 @@ type RefInformation = (
pub(crate) static REFERENCE_MAP: Lazy<PersistedPerInstanceHashMap<*mut c_void, RefInformation>> = pub(crate) static REFERENCE_MAP: Lazy<PersistedPerInstanceHashMap<*mut c_void, RefInformation>> =
Lazy::new(Default::default); Lazy::new(Default::default);
#[ctor::dtor]
fn de_init() {
REFERENCE_MAP.borrow_mut(|reference_map| {
std::mem::take(reference_map);
});
}
/// ### Experimental feature /// ### Experimental feature
/// ///
/// Create a `reference` from `Class` instance. /// Create a `reference` from `Class` instance.