test: closure passing again, fma still not

main
_ 2023-09-29 17:25:54 -05:00
parent 24d576879b
commit 2a0e02aec4
2 changed files with 2 additions and 1 deletions

View File

@ -249,7 +249,7 @@ impl <'a> State <'a> {
Instruction::Closure (a, b) => {
let b = usize::try_from (*b).unwrap ();
let idx = b + 1;
let idx = frame.block_idx + b + 1;
let block = &chunk.blocks [idx];
let mut new_upvalues = Vec::with_capacity (block.upvalues.len ());

View File

@ -11,6 +11,7 @@ use std::{
#[derive (Debug, Eq, PartialEq)]
pub struct BogusClosure {
// I'm pretty sure this should be absolute?
pub idx: usize,
pub upvalues: Vec <Value>,
}