Handle iterators in CatStackFrame

This commit is contained in:
Andrew Morris
2023-05-30 14:00:51 +10:00
parent c12a27a1ff
commit 4729d006a3
12 changed files with 134 additions and 50 deletions

View File

@@ -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(),