chore: start with a default sandbox, to avoid panics in tests

This commit is contained in:
Greg Johnston 2024-07-12 16:26:15 -04:00
parent dac4589194
commit ddb596feb5

View file

@ -16,7 +16,7 @@ type ArenaMap = SlotMap<NodeId, Box<dyn Any + Send + Sync>>;
static MAP: OnceLock<RwLock<ArenaMap>> = OnceLock::new();
#[cfg(feature = "sandboxed-arenas")]
thread_local! {
pub(crate) static MAP: RefCell<Option<Arc<RwLock<ArenaMap>>>> = RefCell::new(None);
pub(crate) static MAP: RefCell<Option<Arc<RwLock<ArenaMap>>>> = RefCell::new(Some(Default::default()));
}
impl Arena {