🐛 bug: fix io.write and take off the `max_iters` restriction

The math is lining up with PUC Lua and LuaJIT. Now I can actually check
the speed.
main
_ 2023-10-01 01:36:40 -05:00
parent fb46ede3ca
commit c50c16b9db
2 changed files with 1 additions and 3 deletions

View File

@ -64,11 +64,10 @@ fn main () -> Result <(), state::StepError> {
vm.debug_print = true;
}
let max_iters = 2000;
let mut in_break = false;
let mut last_input = String::new ();
for _ in 0..max_iters {
loop {
if in_break || breakpoints.iter ().any (|bp| vm.at_breakpoint (bp)) {
in_break = true;
dbg! (&vm.stack);

View File

@ -68,7 +68,6 @@ fn lw_io_write (l: &mut State, num_args: usize) -> usize {
_ => panic! ("Can't io.write this value"),
}
}
println! ("");
// TODO: PUC Lua actually returns the file handle here.
0
}