This commit is contained in:
bQUARKz 2026-02-20 05:06:00 +00:00
parent b57e186490
commit fa651af3c3
Signed by: bquarkz
SSH Key Fingerprint: SHA256:Z7dgqoglWwoK6j6u4QC87OveEq74WOhFN+gitsxtkf8
2 changed files with 2 additions and 5 deletions

View File

@ -204,7 +204,7 @@ impl Verifier {
}
if target_rel == func_len {
// salto para o fim da função
// jump to the end of function
if out_height != func.return_slots {
return Err(VerifierError::BadRetStackHeight {
pc: func_start + pc,
@ -212,7 +212,6 @@ impl Verifier {
expected: func.return_slots,
});
}
// caminho termina aqui
} else {
if !valid_pc.contains(&target_rel) {
return Err(VerifierError::JumpToMidInstruction {

View File

@ -113,9 +113,7 @@ impl VirtualMachine {
breakpoints: std::collections::HashSet::new(),
gc_alloc_threshold: 1024, // conservative default; tests may override
last_gc_live_count: 0,
// Default to all capabilities allowed for backward compatibility.
// Tests can narrow this via `set_capabilities`.
capabilities: u64::MAX,
capabilities: 0,
}
}