✅ test: closure passing again, fma still not
parent
24d576879b
commit
2a0e02aec4
|
@ -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 ());
|
||||
|
|
|
@ -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>,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue