From 77e8b2a4c5ecfc5eee284650dd1840d500e83451 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Mon, 15 Jul 2024 23:46:20 +0900 Subject: [PATCH] remove wrong asaertion --- crates/swc_allocator/src/alloc.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/crates/swc_allocator/src/alloc.rs b/crates/swc_allocator/src/alloc.rs index 8b30e6c857e5..caf934f661f1 100644 --- a/crates/swc_allocator/src/alloc.rs +++ b/crates/swc_allocator/src/alloc.rs @@ -121,11 +121,6 @@ unsafe impl allocator_api2::alloc::Allocator for FastAlloc { unsafe fn deallocate(&self, ptr: NonNull, layout: Layout) { #[cfg(feature = "scoped")] if self.alloc.is_some() { - debug_assert!( - ALLOC.get().is_some(), - "Deallocating a pointer allocated with arena mode with a non-arena mode allocator" - ); - self.with_allocator(|alloc, _| alloc.deallocate(ptr, layout)); return; }