mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-04-18 03:00:27 -04:00
Fix rampant iterator copying
This commit is contained in:
@@ -527,7 +527,7 @@ impl StackFrameTrait for BytecodeStackFrame {
|
||||
}
|
||||
}
|
||||
LoadFunctionResult::StackFrame(mut new_frame) => {
|
||||
new_frame.write_this(false, self.registers[iter_i].clone())?;
|
||||
new_frame.write_this(false, take(&mut self.registers[iter_i]))?;
|
||||
|
||||
self.return_target = res_i;
|
||||
self.this_target = Some(iter_i);
|
||||
|
||||
Reference in New Issue
Block a user