Skip to content

Commit 9092d1f

Browse files
committed
Updated to fix corner case with inner function
1 parent d328042 commit 9092d1f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

vm/src/compile.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -662,6 +662,7 @@ impl Compiler {
662662
name: &str,
663663
args: &ast::Parameters,
664664
) -> Result<bytecode::FunctionOpArg, CompileError> {
665+
self.in_loop = false;
665666
let have_kwargs = !args.defaults.is_empty();
666667
if have_kwargs {
667668
// Construct a tuple:

0 commit comments

Comments
 (0)