detect recursive throw_resource_error and panic instead of causing a segmentation fault

This commit is contained in:
Skgland
2025-12-07 21:08:17 +01:00
committed by Bennet Bleßmann
parent f570e566f8
commit 193cfabc66
3 changed files with 43 additions and 3 deletions

View File

@@ -67,6 +67,7 @@ impl MachineState {
unify_fn: MachineState::unify,
bind_fn: MachineState::bind,
run_cleaners_fn: |_| false,
throwing_resource_error: false,
}
}