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

@@ -74,6 +74,7 @@ pub struct MachineState {
pub(super) cp: usize,
pub(super) attr_var_init: AttrVarInitializer,
pub(super) fail: bool,
pub throwing_resource_error: bool,
pub heap: Heap,
pub(super) mode: MachineMode,
pub(crate) stack: Stack,