mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-04-18 03:00:27 -04:00
Handle iterators in CatStackFrame
This commit is contained in:
@@ -1020,7 +1020,7 @@ impl FunctionCompiler {
|
||||
|
||||
ec.compile(&for_of.right, Some(iter_reg.clone()));
|
||||
|
||||
ec.fnc.push(Instruction::SubCall(
|
||||
ec.fnc.push(Instruction::ConstSubCall(
|
||||
Value::Register(iter_reg.clone()),
|
||||
Value::Builtin(Builtin {
|
||||
name: "SymbolIterator".to_string(),
|
||||
|
||||
Reference in New Issue
Block a user